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]; 效果图:
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]; 效果图:
相关文章推荐
- iOS开发中用到的高效的宏定义
- IOS代码获取内存大小
- ios Notification 与多线程
- iOS中的动画
- openssl ios 公钥分段加解密
- iOS代码技巧之判断设备及状态
- IOS 时间 日历 处理集合
- iOS 中^block 示例
- ios图片拉伸方法
- IOS之Core Foundation框架和Cocoa Foundation框架的区别
- iOS开发系列--Grand Central Dispatch 基础教程:Part 1/2
- IOS cell 分割线从边框顶端开始
- [ios] compile exception about ARC
- iOS开发用到的强大的开源工具
- iOS链接错误,Undefined symbols for architecture arm64:std::__1::basic_string<char, std::__1::char_traits<
- iOS 复选框风格转换 Switchery 开关效果
- IOS项目自动生成技术文档
- iOS 静态代码扫描
- xmpp的一些常识
- iOS va_list,va_start,va_end