您的位置:首页 > 移动开发 > IOS开发

iOS第三方(ActionSheet)-JTSActionSheet

2015-06-18 12:03 513 查看
外观和系统的基本一样

github地址:https://github.com/jaredsinclair/JTSActionSheet

百度云下载: http://pan.baidu.com/s/1qWyZwjM

使用方法:

#import "JTSActionSheet.h" JTSActionSheetTheme *theme = [JTSActionSheetTheme defaultTheme];
theme.titleColor = [Common colorWithTheme];
theme.normalButtonColor = [Common colorWithTheme];
// Setup your buttons

JTSActionSheetItem *buyAll = [JTSActionSheetItem itemWithTitle:@"拍照" action:^{
[self initCamera];
} isDestructive:NO];

JTSActionSheetItem *deleteAll = [JTSActionSheetItem itemWithTitle:@"从相册选择" action:^{
[self initPhoto];
} isDestructive:NO];

JTSActionSheetItem *cancel = [JTSActionSheetItem itemWithTitle:@"取消" action:^{

} isDestructive:NO];

JTSActionSheet *sheet = [[JTSActionSheet alloc] initWithTheme:theme
title:nil
actionItems:@[buyAll, deleteAll]
cancelItem:cancel];
[sheet showInView:self.view]; 效果图:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: