• 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
Re: UIActionSheet -addButtonWithTitle weirdness on iPad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIActionSheet -addButtonWithTitle weirdness on iPad


  • Subject: Re: UIActionSheet -addButtonWithTitle weirdness on iPad
  • From: Markus Spoettl <email@hidden>
  • Date: Thu, 03 Oct 2013 08:49:09 +0200

On 10/2/13 10:40 PM, David Duncan wrote:
On Oct 2, 2013, at 9:33 AM, Markus Spoettl <email@hidden> wrote:

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".


Try setting the cancelButtonIndex after you’ve added the extra buttons. The
safest way to do this would be to stash off the number of buttons after
you’ve created it (via numberOfButtons) then add your extra buttons, then
reset the cancelButtonIndex based on the stashed value. -- David Duncan

Thanks Duncan, I will try that. However, as Fritz pointed out, the HIG says cancel buttons are undesireable, so I guess the easiest solution is to do that.

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>
References: 
 >UIActionSheet -addButtonWithTitle weirdness on iPad (From: Markus Spoettl <email@hidden>)
 >Re: UIActionSheet -addButtonWithTitle weirdness on iPad (From: David Duncan <email@hidden>)

  • Prev by Date: Re: viewForZoomingInScrollView working but with extra blank space
  • Next by Date: Re: Re: Window too large for Versions Browser
  • Previous by thread: Re: UIActionSheet -addButtonWithTitle weirdness on iPad
  • Next by thread: Re: UIActionSheet -addButtonWithTitle weirdness on iPad
  • Index(es):
    • Date
    • Thread