开发者

Adding a Half screen Navigation controller to iPad

I开发者_JAVA技巧n my iPad application i need to implement a navigation controller behavior to the right half of the screen( I can't use split view controller because i need more space in left-side - around 600px). Is there any way to create a NavigationController with a fixed frame size ?

thanks in Advance.


You should simply:

  • create navigation controller;

  • set navigationController.view.frame to necessary frame;

  • add navigationController.view as you main view's or window's subview.

Somsing like this:

navigationController.view.frame = necessaryFrame;
[viewController addSubview:navigationController.view];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜