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 4

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!

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

3 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 935 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.