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 (Cocoa-dev@lists.apple.com)
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com