LuckyLuke
LuckyLuke

Reputation: 49057

Adding/removing viewcontrollers view

If I instantiate a lets say, UISegmentedControl. And link each button to add a viewcontrollers 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?

Upvotes: 0

Views: 135

Answers (1)

WrightsCS
WrightsCS

Reputation: 50697

Use a NavigationController and either push or present Modally the views. The you can just pop or dismiss them.

Upvotes: 1

Related Questions