iphone - Openning a new view with button on a Tab Bar -


hey guys, i'm creating project tab bar controller. first, have 4 different tab bar items, each doing own thing. on last tab bar item, have 7 different buttons. when click button, opens new view, image or webview. i'm having trouble trying open 1 because in of tutorials saw, opened views using 2 xib files. tab bar controller, it's diffcult because have different views on each tab bar items.

so hope can step-by-step how open view button on tab bar, thanks

(sorry, im bad in english)

i think work -- make .xib file , add view want on that. , use viewcontroller in below command , not disrupt previous view.this method called in method controlling action of button needs clicked-

[self presentmodalviewcontroller:yourviewcontroller animated:yes]; 

and cancel view using following method in method controls cancel button -

[self dismisspresentviewmodalviewcontrolleranimated:yes] 

in yourviewcontroller

thus can change view in way!!

hope works , communicate if problem persists


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -