开发者

Adding a Half screen Navigation controller to iPad

开发者 https://www.devze.com 2023-01-10 00:39 出处:网络
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 -

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

精彩评论

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

关注公众号