[iPhone] changing views

Discussion in 'Mac Programming' started by rand0m3r, May 17, 2008.

  1. rand0m3r
    Expand Collapse
    macrumors regular

    Jun 30, 2006
    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.
  2. Sayer
    Expand Collapse
    macrumors 6502a


    Jan 4, 2002
    Austin, TX
  3. rand0m3r
    Expand Collapse
    thread starter macrumors regular

    Jun 30, 2006
    that's a very confusing example. has someone got something more simple.

Share This Page