PDA

View Full Version : Need help with UIButton and UIView




guydor4
Oct 29, 2009, 03:00 PM
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!



dejo
Oct 29, 2009, 03:36 PM
I know I need to use InsertSubView but I didn't understand how to use it.
Actually you're better off using presentModalViewController:animated: or pushViewController:animated: (if you have a UINavigationController). addSubview: might also work although less recommended.