Need help with UIButton and UIView

Discussion in 'iOS Programming' started by guydor4, Oct 29, 2009.

  1. macrumors member

    Joined:
    Oct 8, 2007
    #1
    Hi,

    I'm trying to make a button that when I will click on it,
    it will show up another interface that I have built
    I know I need to use InsertSubView but I didn't understand how to use it.

    Please help me

    Thanks!
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Actually you're better off using presentModalViewController:animated: or pushViewController:animated: (if you have a UINavigationController). addSubview: might also work although less recommended.
     

Share This Page