Latest 1.1.0
Homepage https://github.com/ChrisXu1221/CXAdjustBlockView
License MIT
Platforms ios 4.3, requires ARC
Authors

A self-management container(UIScrollView) of views(UIView) for iOS (iPhone/iPad) that make all the views linked on one direction relationship with animation scaling.


Installation (v1.1.0)

  • CocoaPods add pod 'CXAdjustBlockView'

How to use

*Create a container(CXBlockScrollView).

containerView = [[CXBlockScrollView alloc] initWithFrame:<#(CGRect)#>];

*Use addBlockview:withSpacing: to add views to container.(The x-axis value will be assign as horizontal offset, and y-axis value must be zero. You could assign vertical offset with spacing.
Recommend to add each view as a blockview object in container.)

UIView *someView = [[UIView alloc] initWithFrame:<#(CGRect)#>];
[containerView addBlockview:someView withSpacing:<#(NSUInteger)#>];

*Use insertBlockview:atIndex:withSpacing: to insert view.

UIView *someView = [[UIView alloc] 
[containerView insertBlockview:someView atIndex:<#(NSUInteger)#> withSpacing:<#(NSUInteger)#>];

*Use removeBlockview: to remove exist view.

//someView has been added
[containerView removeBlockview:someView];

Protocol

*Delegate

- (void)blockScrollView:(CXBlockScrollView *)scrollview didAnimatedAtIndex:(NSUInteger)index frame:(CGRect)frame;

Next

  • Horizontal layout
  • Reuse block

Supports

  • iOS 4 or later.
  • Xcode 4.2 (CXAdjustBlockView uses ARC)
  • Frameworks: Foundation, UIKit, CoreGraphics and QuartzCore.

Contact

===

Chris Xu


License

Copyright (c) 2013 Chris Xu, Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Latest podspec

{
    "name": "CXAdjustBlockView",
    "version": "1.1.0",
    "summary": "CXAdjustBlockView(UIScrollView).",
    "description": "                    A self-management container(UIScrollView) of views(UIView) for iOS (iPhone/iPad) that make all the views linked on one direction relationship with animation scaling.n",
    "homepage": "https://github.com/ChrisXu1221/CXAdjustBlockView",
    "license": "MIT",
    "authors": {
        "ChrisXu": "[email protected]m"
    },
    "source": {
        "git": "https://github.com/ChrisXu1221/CXAdjustBlockView.git",
        "tag": "1.1.0"
    },
    "source_files": "CXAdjustBlockViewDemo/classes/*.{h,m}",
    "platforms": {
        "ios": "4.3"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This