0

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

4

1 回答 1

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];
   }

是的,它得到了苹果的认可

希望对你有帮助

于 2013-01-08T07:53:57.997 回答