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

forrestxu

macrumors newbie
Original poster
May 31, 2008
16
0
Hi Guys,

I use IPhone SDK to develop application. How to create a new view or dialog after click a button? I know we can use

UIActionSheet *styleAlert =
[[UIActionSheet alloc] initWithTitle:mad:"Choose a UIBarStyle:"
delegate:self cancelButtonTitle:mad:"Cancel" destructiveButtonTitle:nil
otherButtonTitles:mad:"Default", @"BlackOpaque", @"BlackTranslucent", nil, nil];

But styleAlert is only available for buttons. I want to have a custom way to create the view. in the vew, we can have text fields, Labels, buttons......

How to do it?

Thanks,
Forrest
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.