Change the size of UIAlertController

Hi,


I created a UIAlertController with a text field inside using addTextFieldWithConfigurationHandler. But, the text field is too small for my need. How can I change the text field or/and alert width?


Note that adding a constraint does not work here (iOS9).


Thanks!


David

Replies

Hi da_gagnon


UIAlertAction does not expose a property to change the text field size and UIAlertController does not expose the text field created by your UIAlertAction for you to manipulate the size manually. If you would like to see this functionality added in a future version of iOS, please file an enhancement request using the link at the bottom of the page.