Users adding views

Posted by adamprocter on Stack Overflow See other posts from Stack Overflow or by adamprocter
Published on 2011-01-04T13:52:32Z Indexed on 2011/01/04 13:53 UTC
Read the original article Hit count: 218

Filed under:
|
|
|
|

I have created a main page (myAppViewController) and a add page rect button I have also created a page template (TemplateAViewController) all set up in Interface builder. I would like users to be able to add as many templates themselves and then page through them.

I am not sure where to start. I can create views programmatic like so

-(IBAction)createnewpage : (id) sender { 

myAppViewController *viewcontroller = [[myAppViewController alloc] initWithNibName:@"TemplateAViewController" bundle:[NSBundle mainBundle]]; [[self view] addSubview:viewcontroller.view]; }

I then want to be able to navigate through these views- I guess I need to create a navigation controller to do this ?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ipad