开发者

SplitViewController - can one change the z-order of rootview and detailview?

In an iPad splitview app I am animating ch开发者_开发技巧anges to the subview of the detailview by moving the views from left to right.

If the app starts in Landscape then when a view is animated to the left it goes underneath the rootview or left view. However if the iPad is rotated to Portrait and then back to Landscape then when a subview moves left it is over the top of the rootview.

What options do I have to either bring the rootview to the front or send the subviews of the detailview side backwards?


Sometimes if you ask a question you then work out the answer and I have. I did not think bringtofront would work but it does.

[_splitViewController.view bringSubviewToFront:[[_splitViewController.viewControllers objectAtIndex:0] view]];

(added once I could answer my own question)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜