Skip to content

Instantly share code, notes, and snippets.

@Adnan1990
Last active May 2, 2016 07:01
Show Gist options
  • Select an option

  • Save Adnan1990/2e9833d3475fb43fe7635c449fcaa854 to your computer and use it in GitHub Desktop.

Select an option

Save Adnan1990/2e9833d3475fb43fe7635c449fcaa854 to your computer and use it in GitHub Desktop.
//Trigger observer to perform UI update like refresh listing in App
dispatch_async(dispatch_get_main_queue(), ^(void) {
[[NSNotificationCenter defaultCenter] postNotificationName:@"productListUpdatedWithProductsList" object:nil];
});
//Adding observer in listner Class in ViewDidLoad()
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reloadFriendRequestSent) name:@"productListUpdatedWithProductsList" object:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment