Skip to content

mazenzoor/SpinningWheelLibrary-iOS-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SpinningWheelLibrary (iOS) Documentation

Implementation

  1. Create the Wheel Object
  //// Declare the wheel object
  @property (nonatomic, retain) Wheel * wheel;
  
  
  //// In ViewDidLoad
  wheel = [[Wheel alloc] initWithData: yourWheelImageView numberOfSlice: nbOfSlices needle: needleImageView];
  
  1. Spin the wheel to index
    [wheel spinTo: 4];
    

Optional

Implement the callback that allows you to be notified when the animation is done

//// Callback Done Animating
@property (nonatomic, retain) id <DoneAnimating> callback;


//// In ViewDidLoad
wheel.callback = self;


//// Method
- (void) doneAnimating {
  
  // Code After Animation Done
  
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published