Re: Mail.app's split view
Re: Mail.app's split view
- Subject: Re: Mail.app's split view
- From: Rick Mann <email@hidden>
- Date: Tue, 24 Sep 2013 15:01:50 -0700
On Sep 24, 2013, at 14:46 , Kyle Sluder <email@hidden> wrote:
> On Tue, Sep 24, 2013, at 02:21 PM, Rick Mann wrote:
>> Is iPad Mail's split view a standard thing that other apps can easily
>> implement?
>
> Yes. It's a UISplitViewController.
>
>> I've noticed that swiping to the right to go back up the navigation
>> controller hierarchy only works if you begin the swipe off the screen.
>
> This is called the "interactive pop gesture" (also known as the
> "universal back gesture"), and it is implemented by default by
> UINavigationController. The gesture recognizer is exposed by the
> interactivePopGestureRecognizer property.
>
>> However, in our iPad app that uses popover controllers, you can't do this
>> (it dismisses the popover controller instead).
>
> My educated guess is that some other gesture recognizer is canceling the
> interactive pop gesture. Probably whatever UIPopoverController uses to
> automatically dismiss popovers when the user taps outside of them.
>
>> What I'm wondering is if I should change my popover (which was the
>> appropriate standard UI since the iPad came out) to slide in from the
>> left. Problem is, we also have a popover on the right, and I don't see
>> any way for that one to support swipe-to-the-right-to-go-up.
>
> UISplitViewController has been the standard control for implementing
> Mail-like UIs since iOS first shipped for the iPad. Since iOS 6,
> UISplitViewController's secondary view controller has been displayed
> with a sliding animation, not a popover (see the iOS 6 release notes).
>
>> iOS 7's UI is so broken and inconsistent.
>
> This doesn't sound like an iOS problem at all. It sounds like you were
> using the wrong UI elements since at least iOS 6, and arguably since the
> you first implemented the feature.
>
> Either that or the user interface you're implementing isn't like Mail's
> user interface.
Sorry, I conflated my use of popovers with the split view controller. It used to be that the master view in a split view controller appeared in a popover. We use a popover for a different reason, although it's similar in a lot of ways. The primary reason we don't use a split view controller is that we want the detail to fill the screen, and changing items in the master is a relatively rare operation (and hence, the master list doesn't need to be visible all the time; it needs to be out of the way).
The inconsistency I'm referring to in this case is that a right swipe must be started outside the item, but a left swipe cannot be started outside the item. Moreover, right-swipe is NOT universal, because it doesn't work (by default) in lots of situations. Maybe it only doesn't work in popovers, but I'm not doing anything special in my popovers (other than preventing a bunch of them from stacking), so the default behavior is inconsistent (and broken).
--
Rick
_______________________________________________
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