在iOS 7的“地图”中,如果您从屏幕底部向上滑动,就像在全屏视图中打开控制中心时一样,则会看到一个小标签,而不是完整的“控制中心”,并且地图会正常滚动。然后,您必须抓住该选项卡并将其拉起以完全打开Control Center。参见以下屏幕截图作为示例:
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
.
我相信您必须先隐藏状态栏,才能使抓取器首先出现。话虽这么说,我认为用户希望从屏幕底部向上拖动时出现Control Center,所以我要说阻止这种情况并不是很好的用户体验。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句