Skip to content

xmzqhl/ALMenuBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 

Repository files navigation

ALMenuBar

When your project has the action which sharing something to other social app,you can user this to show the choice,hope you enjoy it.

support ARC and MRC

You can use either style in your Cocoa project. ALMenuBar Will figure out which you are using at compile time and do the right thing.

Usage:


simple like this:

    UIImage *image = [UIImage imageNamed:@"iPhone_sinaweibo.png"];
    ALMenuBarItem *item1 = [[ALMenuBarItem alloc] initWithTitle:@"新浪微博" image:image target:self action:@selector(weiboShare:)];
    
    image = [UIImage imageNamed:@"iPhone_tencentweibo.png"];
    ALMenuBarItem *item2 = [[ALMenuBarItem alloc] initWithTitle:@"腾讯微博" image:image target:self action:@selector(tencentWeoboShare:)];
    
    image = [UIImage imageNamed:@"iPhone_weixinShare.png"];
    ALMenuBarItem *item3 = [[ALMenuBarItem alloc] initWithTitle:@"微信" image:image target:self action:@selector(weixinShare:)];
    
    NSMutableArray *items = [NSMutableArray array];
    [items addObject:item1];
    [items addObject:item2];
    [items addObject:item3];
    _alMenuBar = [[ALMenuBar alloc] initWithTitle:@"分享到" items:items];
    [_alMenuBar ALMenuBarShow];

This is the screenshot: ALMenuBar

and if you add 9 ALMenuBarItem to the _alMenubar,the interface will like this:

ALMenuBar ALMenuBar

About

A bottom menu bar for iPhone

Resources

Stars

Watchers

Forks

Packages

No packages published