Question

In Maps in iOS 7, if you swipe up from the bottom of the screen as if opening control center while the map view is full screen, you get a small tab instead of the full Control Center, and the map scrolls normally. You then have to grab that tab and pull it up to open Control Center fully. See this screenshot as an example:

enter image description here

I have an app with significant functionality triggered by dragging up on a small UI element at the bottom of the screen, and it's tricky to grab it in iOS 7 without swiping up from the bottom. How do I trigger the same Control Center behavior in my app? Is there a key in Info.plist that I can set? Or is that some kind of private API that Apple uses? It doesn't happen when the bottom toolbar is visible, so maybe it's some kind of state that can be set programmatically?

UPDATE: The same behavior occurs when you swipe down from the top of the screen as if to open Notification Center.

UPDATE 2: The camera app does the same thing, according to this question about UIScreenEdgePanGestureRecognizer.

Was it helpful?

Solution

I believe you have to hide the status bar for the grabber to come up first. That being said, I think users would expect Control Center to come up when they drag up from the bottom of the screen, so I'd say preventing that from happening isn't a very good user experience.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top