开发者

How to update Root view based on selection in detail view in split view based ipad App?

I have used Split view controller in which root view as well detail view both inherits table view. I want to update Root view based on selection in deta开发者_StackOverflow中文版il view how to do that? I dont want to add new navigation view in root view. Please help as early as possible.


From the documentation for UISplitViewController:

"Note: A split view controller does not provide any inherent support for managing the communication between the custom view controllers you assign to it. It is your responsibility to determine the best way to do that. However, the delegation pattern often works well for master-detail interfaces. To implement such a pattern, your master view controller sends messages to a custom delegate object whenever the selected item changed or some other relevant event occurred. The detail view controller would then assign itself as the delegate of the master and would use the associated messages to refresh its contents."

It clearly states that you have to design your application for such communications.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜