Skip to content
项目

关于

Tumblr iOS app like menu view completely created using core animation.

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

CHTumblrMenuView

Tumblr iOS app like menu view.

Completely created using core animation.

Easy to drop into your project.

You can add as many items as you want, the CHTumblrMenuView will layout them automatically.

Requirements

CHTumblrMenuView requires Xcode 5, targeting either iOS 5.0 and above, ARC-enabled.

How to use

Drag CHTumblrMenuView.h amd CHTumblrMenuView.m files to your project.

No other frameworks required.

#import "CHTumblrMenuView.h"

CHTumblrMenuView *menuView = [[CHTumblrMenuView alloc] init];

[menuView addMenuItemWithTitle:@"Text" andIcon:[UIImage imageNamed:@"post_type_bubble_text.png"] andSelectedBlock:^{
    NSLog(@"Text selected");
}];
[menuView addMenuItemWithTitle:@"Photo" andIcon:[UIImage imageNamed:@"post_type_bubble_photo.png"] andSelectedBlock:^{
    NSLog(@"Photo selected");
}];

[menuView addMenuItemWithTitle:@"Quote" andIcon:[UIImage imageNamed:@"post_type_bubble_quote.png"] andSelectedBlock:^{
    NSLog(@"Quote selected");

}];
[menuView addMenuItemWithTitle:@"Link" andIcon:[UIImage imageNamed:@"post_type_bubble_link.png"] andSelectedBlock:^{
    NSLog(@"Link selected");

}];
[menuView addMenuItemWithTitle:@"Chat" andIcon:[UIImage imageNamed:@"post_type_bubble_chat.png"] andSelectedBlock:^{
    NSLog(@"Chat selected");

}];
[menuView addMenuItemWithTitle:@"Video" andIcon:[UIImage imageNamed:@"post_type_bubble_video.png"] andSelectedBlock:^{
    NSLog(@"Video selected");

}];

[menuView show];

How it looks

![CHTumblrMenuView] (https://raw.github.com/cyndibaby905/TumblrMenu/master/tumblrMenu.gif)

Lincense

CHTumblrMenuView is available under the MIT license. See the LICENSE file for more info.

探索相关项目

加载中…