【问题标题】:How do I get those small views from the bottom to appear in iOS SDK?如何让那些底部的小视图出现在 iOS SDK 中?
【发布时间】:2011-04-07 02:24:45
【问题描述】:

当您需要确认某些操作时,我指的是带有底部按钮的小窗口。例如,如果您想从相册中删除照片并按下垃圾桶图标,则会从底部跳出一个小视图并询问您是要删除照片还是取消照片

如何让这些视图出现?

【问题讨论】:

    标签: iphone objective-c ios uiview uiviewcontroller


    【解决方案1】:

    使用 UIActionSheet。

    UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Some Action"
                                               delegate:self 
                                      cancelButtonTitle:@"Cancel"
                                 destructiveButtonTitle:@"OK"
                                      otherButtonTitles: nil];
    
    actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
    [actionSheet showInView:self.view];
    [actionSheet release];
    

    【讨论】:

      【解决方案2】:
      猜你喜欢
      • 2023-02-25
      • 1970-01-01
      • 1970-01-01
      • 2016-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多