Subscribe ( )

iPhone Programming Tutorials

 

Forum

You must be logged in to post Login Register

Search 

display a new view when a button clicked

User Post

4:27 am
October 23, 2008


tubier

Noob

posts 2

1

Hi all, I do not know how to display a new view when one clicks a button. I wrote the method responsing to the event on the button so:

if(self.newViewController == nil) {

NewViewController *controller2 = [[NewViewController alloc] initWithNibName:@”newView” bundle:[NSBundle mainBundle]];

self. newViewController = controller2;

[controller2 release];

}

[self.view addSubview: self. newViewController.view];


but when I click the button happens nothing! I am lost! please help me!


About the iCodeBlog forum

Currently Online:

5 Guests

Maximum Online: 19

Forums:

Groups: 2

Forums: 6

Topics: 156

Posts: 503

Members:

There are 268 members

There are 1 guests


Brandon has made 81 posts

Top Posters:

bobcubsfan - 48

crazyiez - 30

Uhu - 17

VertigoSol - 17

Nick - 15

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)  

Share and Enjoy: