how to get input from UIAlertView?

后端 未结 3 955
孤独总比滥情好
孤独总比滥情好 2021-01-11 13:27

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

3条回答
  •  梦谈多话
    2021-01-11 14:16

    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).

提交回复
热议问题