Xcode 6.2 beta 4 是否让 watchKit 接口与页面无法打开推送接口?
Is Xcode 6.2 beta 4 making watchKit interfaces with pages unable to open pushed interfaces?
直到 XCode 6.2 beta 3 我才能够在层次结构中导航,并从我的两个页面相关接口控制器中的任何一个上的按钮推送新接口。
比如这样:
这曾经造成如此奇怪的结果
但现在,这似乎行不通了。 Xcode 没有说明任何关于此事的提示,当您点击推送新界面的按钮时它什么也不做。
我只能更改模式的推送以使其正常工作。
但这限制了我的导航堆栈,因为模态是导航树的最终节点。
另外,这也是不行的:
XCode 迫使我只有在为模态更改推送时才获得此结果!!!!
请提供任何解决方法!
这把我的手绑在背上了。
您无法按照您所描述的进行操作,这是设计使然。如果您能够在之前的 Xcode 测试版中做到这一点,Apple 可能会将其视为一个错误。他们已经非常明确地表明您可以选择基于页面的界面或分层界面,并且它们是相互排斥的。两者都可以随时呈现模态视图。
来自Apple Watch Programming Guide:
Interface Navigation
For WatchKit apps with more than one screen of content, you must choose a technique for navigating between those screens. WatchKit apps support two navigation styles, which are mutually exclusive:
Page-based. This style is suited for apps with simple data models where the data on each page is not closely related to the data on any other page. A page-based interface contains two or more independent interface controllers, only one of which is displayed at any given time. At runtime, the user navigates between interface controllers by swiping left or right on the screen. A dot indicator control at the bottom of the screen indicates the user’s current position among the pages.
Hierarchical. This style is suited for apps with more complex data models or apps whose data is more hierarchical. A hierarchical interface always starts with a single root interface controller. In that interface controller, you provide controls that, when tapped, push new interface controllers onto the screen.
Apps can use modal presentations to supplement their base navigation style. Modal presentations are a way to interrupt the current user workflow to request input or display information. You can present interface controllers modally from both page-based and hierarchical apps. The modal presentation itself can consist of a single screen or multiple screens arranged in a page-based layout.
直到 XCode 6.2 beta 3 我才能够在层次结构中导航,并从我的两个页面相关接口控制器中的任何一个上的按钮推送新接口。
比如这样:
这曾经造成如此奇怪的结果
但现在,这似乎行不通了。 Xcode 没有说明任何关于此事的提示,当您点击推送新界面的按钮时它什么也不做。
我只能更改模式的推送以使其正常工作。
但这限制了我的导航堆栈,因为模态是导航树的最终节点。
另外,这也是不行的:
XCode 迫使我只有在为模态更改推送时才获得此结果!!!!
请提供任何解决方法!
这把我的手绑在背上了。
您无法按照您所描述的进行操作,这是设计使然。如果您能够在之前的 Xcode 测试版中做到这一点,Apple 可能会将其视为一个错误。他们已经非常明确地表明您可以选择基于页面的界面或分层界面,并且它们是相互排斥的。两者都可以随时呈现模态视图。
来自Apple Watch Programming Guide:
Interface Navigation
For WatchKit apps with more than one screen of content, you must choose a technique for navigating between those screens. WatchKit apps support two navigation styles, which are mutually exclusive:
Page-based. This style is suited for apps with simple data models where the data on each page is not closely related to the data on any other page. A page-based interface contains two or more independent interface controllers, only one of which is displayed at any given time. At runtime, the user navigates between interface controllers by swiping left or right on the screen. A dot indicator control at the bottom of the screen indicates the user’s current position among the pages.
Hierarchical. This style is suited for apps with more complex data models or apps whose data is more hierarchical. A hierarchical interface always starts with a single root interface controller. In that interface controller, you provide controls that, when tapped, push new interface controllers onto the screen. Apps can use modal presentations to supplement their base navigation style. Modal presentations are a way to interrupt the current user workflow to request input or display information. You can present interface controllers modally from both page-based and hierarchical apps. The modal presentation itself can consist of a single screen or multiple screens arranged in a page-based layout.