UITextField inside an UIAlertView not working in iOS4.1 and works in 3.0

后端 未结 3 516
闹比i
闹比i 2021-01-25 01:13

I have a UITextField added to an UIAlerView (Kind of adding user to list with nick name, and nickname is asked by the alertview.). Thats work perfect in iOS3, But I cant type to

3条回答
  •  春和景丽
    2021-01-25 01:49

    I have created a post in my blog on the topic "How to add UITextField to UIAlertView from XIB". To Solve your problem, you need to add a "fake" UITextField into the Alert view via coding. Please refer to the following link:

    http://creiapp.blogspot.com/2011/08/how-to-add-uitextfield-to-uialertview.html

提交回复
热议问题