Latest 0.1.0
Homepage https://github.com/AshStill/ALWheelView
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

CocoaPods 
CocoaPods 
CocoaPods 
[Support]() 

A WheelView based on UICollectionView.

  • Customize View as using collectionView
  • UICollectionView-like delegates
  • Customize radius/size/scale
  • Infinite loop

image

Pod

pod 'ALWheelView'

Usage

init view and assign the delegate

 - (ALWheelView *)wheelView
{
    if (!_wheelView) {
        _wheelView = [[ALWheelView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.view.bounds))];
        _wheelView.delegate = self;
    }
    return _wheelView;
}

implement the delegates below

- (NSInteger)numberOfItemsInWheel:(ALWheelView*)wheelView;
- (CGFloat)radiusOfWheel:(ALWheelView*)wheelView;
- (CGFloat)minScaleOfItemInWheel:(ALWheelView*)wheelView;
- (CGSize)sizeOfItemInWheel:(ALWheelView*)wheelView atIndex:(NSInteger)index;
- (void)wheelView:(ALWheelView*)wheelView didClickItemAtIndex:(NSInteger)index;
- (UIView*)wheelView:(ALWheelView*)wheelView itemViewAtIndex:(NSInteger)index;
- (void)wheelViewWillBeginDragging:(ALWheelView*)wheelView;
- (void)wheelViewDidEndScrollAnimation:(ALWheelView*)wheelView;

Release Note

0.1.0

  • Basic delegates
  • Infinite loop

Latest podspec

{
    "name": "ALWheelView",
    "version": "0.1.0",
    "summary": "A WheelView based on UICollectionView.",
    "description": "A WheelView based on UICollectionView.nCustomize View as using collectionViewnUICollectionView-like delegatesnCustomize radius/size/scalenInfinite loop",
    "homepage": "https://github.com/AshStill/ALWheelView",
    "screenshots": "https://raw.githubusercontent.com/AshStill/ALWheelView/master/screenshot.gif",
    "license": "MIT",
    "authors": {
        "AshStill": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/AshStill/ALWheelView.git",
        "tag": "0.1.0"
    },
    "source_files": [
        "ALWheelView",
        "ALWheelView/*.{h,m}"
    ],
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This