开发者

Using Segment Controller to "Push" rather than UINavigationController

I've involved myself so much in NavigationControllers that I've become kinda ignorant with other options. Here's what I want to accomplish, I've built Subclassed ViewContro开发者_如何学Gollers to Push via NavigationController that works pretty fine.

However, to avoid the Idea of going back and getting to a new view doesn't fit for quick access since this is about calculator, I came up with using SegmentedControl.

I added UISegmentControl to the NavigationBar. What I want to accomplish, is on tapping of a segment, The Calculator1ViewController Loads below the NavigationBar. And on tapping another Segment, the previous ViewController is unloaded and a different "Calculator2ViewController" is loaded.

I'm not quite sure how to do it, loadFromNib may not work too well, because I'm using custom ViewControllers.

Any suggestions would be great help.


You might be better off making it a single view controller, and just swapping out the views.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜