Subclass UIAlertView with text fields for iOS 4

Has anyone seen a solution for adding text fields to a UIAlertView (without private APIs)? On 3.x, I used hyperego EGOTextFieldAlertView, but this does not work properly when compiling for iOS 4. Any suggestions? http://github.com/enormego/EGOTextFieldAlertView/

+3
source share
3 answers

I found a viable solution: Use ModalAlert from Eric Sadun's cookbook. http://github.com/erica/iphone-3.0-cookbook-/tree/master/C10-Alerts/03-Soliciting%20Text/

+2
source

The solution described here works great for me.

+2

EGOTextFieldAlertView iOS 4 : https://github.com/josecastillo/EGOTextFieldAlertView

This has a slight problem with automatically positioning the view, but there are a few simple fixes, depending on the needs of your project.

I highly recommend this code as a starting point.

+1
source

Source: https://habr.com/ru/post/1749730/


All Articles