The simplest method to do this is using, NSNotification with userInfo.
Add the observer in the view controller, where the updates need to be made.
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(updateArray:) name:@"updateArray" object:nil];
Write the method,
-(void)updateArray:(NSNotification*)notif
{
[[NSNotificationCenter defaultCenter]removeObserver:self name:@"updateArray" object:nil];
NSDictionary *dictionary = [notif userInfo];
[self.arrPlayers addObject:dictionary];
}
And then, post notification wherever, the updates need to be called from ->
NSString *notificationName = @"updateArray";
NSString *key = txtField.text;
NSDictionary *dictionary = [NSDictionary dictionaryWithObject:orientation forKey:key];
[[NSNotificationCenter defaultCenter] postNotificationName:notificationName object:nil userInfo:dictionary];
TRY IT !!
SearchViewControllerinstance?