UIActionSheet -addButtonWithTitle weirdness on iPad
UIActionSheet -addButtonWithTitle weirdness on iPad
- Subject: UIActionSheet -addButtonWithTitle weirdness on iPad
- From: Markus Spoettl <email@hidden>
- Date: Wed, 02 Oct 2013 18:33:16 +0200
Hello,
I just came across the following, would someone confirm this:
UIActionSheet *sheet =
[[UIActionSheet alloc] initWithTitle:nil
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:nil];
[sheet addButtonWithTitle:@"Button1"];
[sheet addButtonWithTitle:@"Button2"];
[sheet showFromRect:someRect inView:someView animated:YES];
On the iPad (both device and simulator) this produces a sheet with "Button2"
missing. No matter how many buttons one adds, the last one added goes missing.
On iPhone (again both device and simulator) this produces a sheet with the
expected buttons "Cancel", "Button1", "Button2".
If I set the cancelButtonTitle: parameter to nil, both iPad and iPhone behave
correctly, iow "Button1", "Button2".
This is on iOS 7.0, Xcode 5.0 (5A1413).
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden