<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          JMActionSheetDescription使用描述器組件

          聯(lián)合創(chuàng)作 · 2023-09-27 15:43

          JMActionSheetDescription 是 ActionSheet 和 UIActivityViewController 的替代品,使用描述器組件。

          使用示例:

          //init your description
          JMActionSheetDescription *desc = [[JMActionSheetDescription alloc] init];
          //Configure your colors
          desc.actionSheetTintColor = [UIColor grayColor];
          desc.actionSheetCancelButtonFont = [UIFont boldSystemFontOfSize:17.0f];
          desc.actionSheetOtherButtonFont = [UIFont systemFontOfSize:16.0f];
          //Cancel item
          JMActionSheetItem *cancelItem = [[JMActionSheetItem alloc] init];
          cancelItem.title = @"Cancel";
          desc.cancelItem = cancelItem;
          //Can configure a context for your action .. an url ? image ? (work in progress)
          JMActionContextItem *contextItem = [[JMActionContextItem alloc] init];
          contextItem.image = [UIImage imageNamed:@"gif_experiments"];
          contextItem.imageHeight = 200.0f;
          desc.contextItem = contextItem;
          desc.title = @"Available actions for component";
          //item + block
          JMActionSheetItem *itemShare = [[JMActionSheetItem alloc] init];
          itemShare.title = @"last action";
          itemShare.action = ^(void){
              NSLog(@"last action pressed");
          };
          //Pickeritem + block
          JMActionSheetPickerItem *pickerItem = [[JMActionSheetPickerItem alloc] init];
              pickerItem.elements = @[@"One", @"Two", @"three", @"Four"];
              pickerItem.pickerAction = ^(NSString *selectedValue){
                  NSLog(@"selectedValue %@",selectedValue);
              };
          desc.items = @[itemShare,pickerItem];
          [JMActionSheet showActionSheetDescription:desc inViewController:self];

          瀏覽 12
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  国产精品久久久久久久久久 | 成人视频在线观看视频在线观看黄色 | 成人操碰视频 | 黄色小电影在线视频 | 日日干夜夜撸 |