I am attempting to send and receive messages through NSNotificationCenter in Objective-C. However, I haven\'t been able to find any examples on how to do this.
NSNotificationCenter
if you're using NSNotificationCenter for updating your view, don't forget to send it from the main thread by calling dispatch_async:
dispatch_async
dispatch_async(dispatch_get_main_queue(),^{ [[NSNotificationCenter defaultCenter] postNotificationName:@"my_notification" object:nil]; });