Search code examples
iphoneiosipaduiactionsheet

UIActionsheet Ipad/Iphone


I'm currently using a UIActionsheet for my universal app, works great and all, but I want the iPad actionsheet to resemble the iPhone actionsheet.

Is there anything on the iPad that is similar to the iPhone actionsheet? Alternatively, is there a way to reposition the iPad actionsheet and popoverview WITHOUT a direction arrow?

Thanks

EDIT: Here is the code where I implement and add the actionsheet

adActionSheet = [[UIActionSheet alloc]initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Go to Site", @"Some other button", nil];
    [adActionSheet showFromRect:CGRectMake(300, 1150, 200, 200) inView:self.view animated:YES];

Solution

  • On an iPad, action sheets are automatically shown in a popover. This can't be changed. You can't remove the array either. The UIActionSheet API doesn't support what you want.

    Your only solution is a custom implementation that does what you want.