how to get input from UIAlertView?

后端 未结 3 954
孤独总比滥情好
孤独总比滥情好 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:08

    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.

提交回复
热议问题