zoukankan      html  css  js  c++  java
  • iOS第三方(ActionSheet)-JTSActionSheet

    外观和系统的基本一样

    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];

     效果图:

     

  • 相关阅读:
    HHUOJ 1321
    数据结构应用
    数据结构应用
    数据结构与算法分析
    数据结构与算法分析
    CSS -- 字体样式
    CSS -- 选择器
    CSS
    HTML -- 表单元素2
    HTML -- 表单元素1
  • 原文地址:https://www.cnblogs.com/hxwj/p/4585504.html
Copyright © 2011-2022 走看看