SphereMenu is a fun menu powered by UIDynamicAnimator
. Inspired by Sphere.
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];
SphereMenu is available under the MIT license, see the LICENSE file for more information.