views:

157

answers:

0

I want to implement something like this.Main screen shows login info.After login i want to show a view with 4 buttons in upper part of view.Names button1,button2,button3,button4 The first time view appears i want to show a view below buttons.And by clicking each button show different views? BTW for buttons i took UIsegmentedControl in a view called container.And on clicking of each segmented button i am adding subview to the container view.But i don't know when to release those subview.If i add views again and again it consumes whole memory.So whats the best way to implement this hierarchy with memory management?