【问题标题】:UIActionSheet should be called from the popover but shown from the bottom of the main screenUIActionSheet 应该从弹出窗口中调用,但从主屏幕底部显示
【发布时间】:2013-12-17 09:35:23
【问题描述】:

我有一个 UIActionSheet 从显示在单元格中的弹出窗口中的按钮调用。当我使用 iPhone 时 - 从屏幕底部调用 UIActionSheet,但现在我需要为 iPad 转换 UI - 所以现在 VC 显示在弹出窗口中,UIActionSheet 也显示在弹出窗口中。发件人显示在弹出框时,是否也可以从 iPad 屏幕底部显示UIActionSheet

呈现UIActionSheet的代码是:

- (void) showActionSheet
{
    UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil
                                                             delegate:self
                                                    cancelButtonTitle:@"Отмена"
                                               destructiveButtonTitle:nil
                                                    otherButtonTitles:@"Наличие несуществующего объекта", @"Некорректность значений атрибутов", nil];
    [actionSheet showInView:self.view];
}

【问题讨论】:

    标签: ios objective-c uipopovercontroller uiactionsheet


    【解决方案1】:

    用过[actionSheet showFromRect: popover.frame inView: self.view animated: YES];

    它可能对你有用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多