views:

1495

answers:

2

I want take player name as input by using UIAlertView. Is it possible to add textField on the UIAlertView?

+1  A: 

Yes, but not without some hacking, see this previous question. You'd have to directly manipulate the UIAlertView's subviews and add a UITextField and then resize the UIAlertView's frame. You're better off creating your own view.

drewh
+1  A: 

Yes, it's definitely possible, and it isn't a hack. You would need to subclass UIAlertView and place controls into it. Since it's a subclass, it will retain the same look & feel, etc.

For full details, see this tutorial by Jeff LaMarche (co-author of Beginning iPhone Development, from Apress).

Jim Dovey