3

有没有人看到将文本字段添加到 UIAlertView(没有私有 API)的解决方案?在 3.x 上,我一直在使用 enormego 的 EGOTextFieldAlertView,但这在为 iOS 4 编译时不能正常工作。有什么建议吗? http://github.com/enormego/EGOTextFieldAlertView/

4

3 回答 3

2

我找到了一个可行的解决方案:使用 Erica Sadun 食谱中的 ModalAlert。 http://github.com/erica/iphone-3.0-cookbook-/tree/master/C10-Alerts/03-Soliciting%20Text/

于 2010-06-24T20:00:17.357 回答
2

这里描述的解决方案对我很有用。

于 2011-05-25T07:25:39.517 回答
1

Jose Castillo 在 iOS 4 中找到了 EGOTextFieldAlertView 的修复程序,可以在此处找到: https ://github.com/josecastillo/EGOTextFieldAlertView

自动定位视图有一点问题,但有几个简单的修复方法,具体取决于您的项目需求。

我强烈推荐此代码作为起点。

于 2011-04-13T23:40:45.713 回答