warning: 'UIAlertView' may not respond to '-addTextFieldWithValue:label:'

后端 未结 3 2171
别那么骄傲
别那么骄傲 2020-12-18 16:10

in my application i was using UIAlertView for login, it contains TextFields, its working perfectly, but i\'m getting a warning when i compile the code, i\'m using iphone SDK

3条回答
  •  无人及你
    2020-12-18 16:42

    You can use http://github.com/enormego/EGOTextFieldAlertView. It gives you those private methods, in a subclass of UIAlertView. This way you don't have to change your code at all.

提交回复
热议问题