| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | @interface UIAlertView (TextFields) - (UITextField*)addTextFieldWithValue:(NSString*)aValue label:(NSString*)aLabel; - (UITextField*)textFieldAtIndex:(NSInteger)index; - (NSInteger)textFieldCount; - (UITextField*)textField; - (id)keyboard; @end // This category name is different so the compiler doesn't throw warnings about missing methods @implementation UIAlertView (TextFieldsKeyboard) - (id)keyboard { return nil; } @end |