在视图中心显示actionsheet
,而popover
显示iPad app
。这是Appstore
允许的吗?
答案 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批准
希望它可以帮到你