Possible Duplicate:
How to display temporary popup message on iPhone/iPad/iOS
I want to be able to pop a small screen/view on top of my current view with a UITextField and two buttons on it. I want to allow the user to enter some data or cancel.
I don’t want to use a completely new screen to do this. Is there any nice way to go about achieving this? Is there something provided in the iOS API’s to do this?
Any links to tutorial would be appreciated. Have been reading around on google but all I can find are examples of full screen modal views.
Thanks,
-Code
Check out the UIAlertView and UIAlertViewDelegate classes. They should do what you want.
Here’s a tutorial that should help!
If you need text input (rather than just buttons) try this tutorial.