Last active
May 2, 2016 07:01
-
-
Save Adnan1990/2e9833d3475fb43fe7635c449fcaa854 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| //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