iOS 6.0:UISplitViewController Popover破坏或Apple改变了设计?

iOS 6.0:UISplitViewController Popover破坏或Apple改变了设计?,第1张

概述我在 Xcode 4.5和部署目标5.1中创建了一个包含主详细信息模板的项目.请有人帮我解决UISplitViewController问题. >在纵向模式下,主视图从左侧淡入.它不像在iOS 5.0中以纵向模式使用的那样显示为Popover视图.请参阅附图.如何将主视图设为popover? >无论如何我可以在Landscap模式中隐藏主视图吗? 谢谢. 这是自5.1以来的默认 *** 作. 从iOS 6发 @H_419_0@ @H_419_0@ 我在 Xcode 4.5和部署目标5.1中创建了一个包含主详细信息模板的项目.请有人帮我解决UISplitVIEwController问题.

>在纵向模式下,主视图从左侧淡入.它不像在iOS 5.0中以纵向模式使用的那样显示为Popover视图.请参阅附图.如何将主视图设为popover?
>无论如何我可以在Landscap模式中隐藏主视图吗?

谢谢.

解决方法 这是自5.1以来的默认 *** 作.
从iOS 6发行说明:

In iOS 5.1,the UISplitVIEwController class adopts the slIDing
presentation style when presenting the left vIEw (prevIoUsly seen only
in Mail). This style is used when presentation is initiated either by
the existing bar button item provIDed by the delegate methods or by a
swipe gesture within the right vIEw. No additional API adoption is
required to obtain this behavior,and all existing APIs—including that
of the UIPopoverController instance provIDed by the delegate—will
continue to work as before.

If the gesture would be insupportable in your app,setting the
presentsWithGesture property of your split vIEw controller to NO
disables the gesture. However,disabling the gesture is discouraged
because its use preserves a consistent user experIEnce across all
apps.

有一个dirty way来解决这个问题.

@H_419_0@ 总结

以上是内存溢出为你收集整理的iOS 6.0:UISplitViewController Popover破坏或Apple改变了设计?全部内容,希望文章能够帮你解决iOS 6.0:UISplitViewController Popover破坏或Apple改变了设计?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1064488.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存