Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rand0m3r

macrumors regular
Original poster
Jun 30, 2006
115
1
hi. i want to write a very simple application.

if a button on the first screen is pressed, i want to go to the 2nd screen.

right now, i have a controller for each screen/view. in my delegate i have [window addSubview:controllersView]; for the first view.

so when the button is pressed, the communication should happen as follows:
firstView --> firstViewController --> delegate

the delegate's window should be told to add the 2nd controller's view to the vier hierarchy. but right now, when i press the button - the view does not change.

can anyone provide any help? thanks.
 

rand0m3r

macrumors regular
Original poster
Jun 30, 2006
115
1
that's a very confusing example. has someone got something more simple.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.