iphone - where to control view controllers? -


i'm working in view-based template, , have main.m, haven't touched. , 1 view controller current display, , 1 dummy controller has nothing.

if implement dummy controller, , want switch between 2 view controllers, , how should it? i've worked subviews, not quite sure touch view controllers... work same addview, release subviews? please me out..

it depends on how want you're looking do. present dummy view controller either modally or non-modally. modally, check out:

- (void)presentmodalviewcontroller:(uiviewcontroller *)modalviewcontroller animated:(bool)animated 

here sample on how that:

dummyviewcontroller *dummycontroller = [[dummyviewcontroller alloc] init]; [self presentmodalviewcontroller: dummycontroller]; 

you like:

- (void)presentflipsideviewcontroller:(uiviewcontroller *)flipsideviewcontroller 

you call these methods when user did something, such tap button. both of these methods implemented in view controller handling tap or action, in case, project template view controller .


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -