Skip to content

xmkevin/MOSliderMenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MOSliderMenu

MOSliderMenu is a menu with the same look as snapseed image adjustment menu.

How To:

Create a menu with some items:

NSArray *items = @[[[MOSliderMenuItem alloc] initWithText:@"ONE"],
                       [[MOSliderMenuItem alloc] initWithText:@"TWO"],
                       [[MOSliderMenuItem alloc] initWithText:@"THREE"],
                       [[MOSliderMenuItem alloc] initWithText:@"FOUR"],
                       [[MOSliderMenuItem alloc] initWithText:@"FIVE"]];
    
MOSliderMenu *menu = [[MOSliderMenu alloc] initWithFrame:self.view.frame
                                               menuItems:items
                                             andDelegate:self];

Add the menu to the view:

menu.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
[self.view addSubview:menu];

Then you can get events from the menu:

- (void)sliderMenu:(MOSliderMenu *)menu didSelectItemIndex:(NSInteger)index
{
    //Put your code here.
}

- (void)sliderMenuChangingSelectedItemValue:(MOSliderMenu *)menu
{
    //Put your code here.
}

Screenshot

About

A snapseed like image adjustment menu

Resources

License

Stars

Watchers

Forks

Packages

No packages published