如何从UIAlertView获取输入? [英] how to get input from UIAlertView?

查看:118
本文介绍了如何从UIAlertView获取输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用UIAlertView将播放器名称作为输入。是否可以在UIAlertView上添加textField?

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

推荐答案

是的,这绝对是可能的,它不是一个黑客。您需要将UIAlertView子类化并将控件放入其中。因为它是一个子类,它将保持相同的外观,感觉等。

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

这篇关于如何从UIAlertView获取输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆