开发者

Adding/removing viewcontrollers view

开发者 https://www.devze.com 2023-02-03 23:41 出处:网络
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

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.

0

精彩评论

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