If you know that you need an NSArray containing all of the UITextField , then why not add them to the array?
NSMutableArray *textFields = [[NSMutableArray alloc] init]; UITextField *textField = [[UITextField alloc] initWithFrame:myFrame]; [textFields addObject:textField];
If you are using a thread, use IBOutletCollection
@property (nonatomic, retain) IBOutletCollection(UITextField) NSArray *textFields;
Then connect all UITextField to this array
source share