【问题标题】:Show actionsheet in center for iPad app在 iPad 应用程序的中心显示操作表
【发布时间】:2013-01-08 07:48:18
【问题描述】:

在视图中心显示actionsheet,而不是在popover 中显示iPad appAppstore 允许这样做吗?

【问题讨论】:

    标签: objective-c ios ipad ios5 app-store


    【解决方案1】:

    试试这个:-

    UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"options" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Option 1", @"Option 2", nil];
    popupQuery.actionSheetStyle = UIActionSheetStyleBlackOpaque;
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
       {
            //popupQuery.
            [popupQuery showInView:self.view];
       }
    

    是的,它得到了 Apple 的批准

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-21
      • 1970-01-01
      • 2019-10-15
      • 2011-06-05
      • 1970-01-01
      相关资源
      最近更新 更多