Re: Single-item action sheet wrong size
Re: Single-item action sheet wrong size
- Subject: Re: Single-item action sheet wrong size
- From: Michael Babin <email@hidden>
- Date: Tue, 24 Jun 2014 09:53:18 -0500
On Jun 23, 2014, at 7:50 PM, Rick Mann <email@hidden> wrote:
> I'm trying to implement something like the photos app delete button. I present the action sheet to confirm deletion, but the sheet is too large for the single button; there's a larger gap below the button than above it. Any idea what's going on, or how to address it?
>
> http://cl.ly/image/3S2y3G1h2X17/Screen Shot 2014-06-23 at 17.41.50 .png
I’ve encountered this behavior with action sheets displayed in a popover on an iPad. The docs tell you that you shouldn’t include a cancel item in this case, because tapping outside the popover effectively cancels. If you don’t include a cancel item in this case, then the action sheet appears as in your screen shot (extra space at the bottom). If you do include a cancel item, it is not displayed in the action sheet (in this case) and the extra space at the bottom does not appear.
_______________________________________________
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