如何使iOS 7控制中心的行为像在“地图”(小标签)中一样?

汤姆·汉明

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

Scott Berrevoets

我相信您必须先隐藏状态栏,才能使抓取器首先出现。话虽这么说,我认为用户希望从屏幕底部向上拖动时出现Control Center,所以我要说阻止这种情况并不是很好的用户体验。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何像在谷歌地图中一样单击并拖动大视图?

键盘处理就像在iOS 7中的消息应用程序中一样

像在Facebook iOS 7应用程序中一样获得漂亮的深色UIToolbar模糊

如何像在facet_grid中一样在facet_wrap中放置条形标签

如何像在 Chrome 中一样在终端中切换标签页

如何像在 Windows 7 中一样删除图片元数据?

如何像在颤振中一样使用 tablelayout

如何像在 kivy 中一样进行支票?

在ExoPlayer中,如何完全使用SimpleExoPlayer.setVideoScalingMode像在ImageView中心裁剪中一样?

如何在puppeter中打印页面的控制台输出,就像在浏览器中一样?

如何在Rails库中进行记录就像在模型和控制器中一样

如何像在iOS中一样从左到右返回幻灯片上的上一个活动?

C#如何像在插槽(WPF)中一样使图像在Y轴上移动

像在iOS中一样,如何在WP8中使用Prefix.pch?

像在iOS中一样滑动以在ListView中显示按钮

我如何创建一组重复的条纹,就像在美国国旗中一样

如何像在 Python 中一样在 C++ 中重新创建默认参数?

如何像在 Qtextedit 中一样在 Qtableview 中启用自动滚动?

如何像在 xml 中一样在 java 中设置 lottie 动画?

如何像在 Laravel 中一样在 Yii2 中制作动态属性?

如何像在 Windows 中一样在 ubuntu 中更改外部硬盘名称/驱动器

如何仅使用css绘制错误图标,就像在图像中一样

如何像在 JavaScript 中一样向回调函数添加参数?

如何像在python中一样在C++中分割字符串?

如何像在JS文件中一样在GWT中注入静态CSS文件?

如何像在web.xml中一样配置spring-boot servlet?

如何像在Eclipse中一样在Android Studio中复制错误

如何像在SQL中一样使用'in'和'not in'过滤Pandas数据帧

如何像在MATLAB中一样在Python中创建数字范围