在iPad应用程序的中心显示操作表

时间:2013-01-08 07:48:19

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

在视图中心显示actionsheet,而popover显示iPad app。这是Appstore允许的吗?

1 个答案:

答案 0 :(得分: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批准

希望它可以帮到你