A circle menu (iOS version). You can customize the number of buttons with image and title between 1 and 9.
- Drag the
CircleMenu/LLCircleMenufolder into your project. - Add
#include "LLCircleMenu.h", where you want to use it.
_circleMenuDemo = [[LLCircleMenu alloc] initWithFrame:CGRectMake(0, 0, 270, 270) andDelegate:self];
_circleMenuDemo.center = CGPointMake(160, 240);
[self.view addSubview:_circleMenuDemo];
int randomcount = arc4random() % 10;
NSMutableArray *arrayItem = [[NSMutableArray alloc] init];
for (int i = 0; i < randomcount; i++) {
[arrayItem addObject:[[NSDictionary alloc] initWithObjectsAndKeys:[NSString stringWithFormat:@"i%d", i], @"title", @"item_bg.png", @"image", nil]];
}
[_circleMenuDemo setViewWithInfo:arrayItem];
- (void)circlemenu:(id)circlemenu didSelectRowAtIndex:(NSInteger)index;
This code is distributed under the terms and conditions of the MIT license.
