Adding/removing viewcontrollers view
If I instantiate a lets say, UISegmentedControl. And link each button to add a vi开发者_如何转开发ewcontrollers view to the viewhierachy, would it be enough to just add that view to the stack or must I call other methods aswell. And what about removing views? Would it be sufficient to just say
I do NOT have the correct syntax in front of me right now so bear with me.
[self removeSuperview];
Is it necassary to call methods on the viewcontroller itself?
Use a NavigationController and either push or present Modally the views. The you can just pop or dismiss them.
精彩评论