Skip to content

Instantly share code, notes, and snippets.

@marcelojunior7
Created June 8, 2015 14:11
Show Gist options
  • Save marcelojunior7/afdfc1d3fce6922aaa78 to your computer and use it in GitHub Desktop.
Save marcelojunior7/afdfc1d3fce6922aaa78 to your computer and use it in GitHub Desktop.
@interface SomeViewController ()
@end
@implementation SomeViewController
- (void)viewDidLoad {
[super viewDidLoad];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(newCommunication:) name:@"newCommunication" object:nil];
}
- (void)newCommunication:(NSNotification *)notification
{
if ([notification.name isEqualToString:@"newCommunication"])
{
//é importante verificar o nome da notificação e a key no it4Notification
NSDictionary* userInfo = [notification.userInfo valueForKey:@"Communication"];
}
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment