Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 946 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 946 Bytes

SphereMenu

SphereMenu is a fun menu powered by UIDynamicAnimator. Inspired by Sphere.

Usage

To use SpereMenu, create a SpereMenu like this

UIImage *startImage = [UIImage imageNamed:@"start"];
UIImage *image1 = [UIImage imageNamed:@"icon-twitter"];
UIImage *image2 = [UIImage imageNamed:@"icon-email"];
UIImage *image3 = [UIImage imageNamed:@"icon-facebook"];
NSArray *images = @[image1, image2, image3];
SphereMenu *sphereMenu = [[SphereMenu alloc] initWithStartPoint:CGPointMake(160, 320) startImage:startImage submenuImages:images];
sphereMenu.delegate = self;
[self.view addSubview:sphereMenu];

A Quick Peek

screenshots

License

SphereMenu is available under the MIT license, see the LICENSE file for more information.