Skip to content

sector-menu run in ios platform (在ios上运行的扇形菜单)

Notifications You must be signed in to change notification settings

thuai/sector-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sector Menu (扇形动画菜单)


How to Use ?

####Step 1

make a THSectorMenu instance

for example:


THSectorMenu *menu = [[THSectorMenu alloc] initWithFrame:CGRectMake(200, 400, 40, 40) backgroundImage:[UIImage imageNamed:@"menu.png"]];
Step 2

make several sub menu item, and add to a NSArray object

for example:


THOneMenuItem *subMenu1 = [[THOneMenuItem alloc] initWithTitle:@"发起聊天" image:[UIImage imageNamed:@"chat.png"]];
THOneMenuItem *subMenu2 = [[THOneMenuItem alloc] initWithTitle:@"拨打电话" image:[UIImage imageNamed:@"telephone.png"]];
    
NSArray *subMenus = [NSArray arrayWithObjects:subMenu1, subMenu2**, nil];

Step 3

set items of THSectorMenu instance


[menu setItems:subMenus];

Screenshot of this project

Screenshot

About

sector-menu run in ios platform (在ios上运行的扇形菜单)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published