Created
June 8, 2015 14:11
-
-
Save marcelojunior7/afdfc1d3fce6922aaa78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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