• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIActionSheet -addButtonWithTitle weirdness on iPad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: UIActionSheet -addButtonWithTitle weirdness on iPad
      • From: David Duncan <email@hidden>
    • Re: UIActionSheet -addButtonWithTitle weirdness on iPad
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Window too large for Versions Browser
  • Next by Date: Re: iOS Calendar Question
  • Previous by thread: Re: Window too large for Versions Browser
  • Next by thread: Re: UIActionSheet -addButtonWithTitle weirdness on iPad
  • Index(es):
    • Date
    • Thread