Awesome Open Source
Awesome Open Source

ALWheelView

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
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Objective C (57,122
Radius (2,789
Customize (2,173
Collectionview (920
Wheelview (57