NSNotification provides a simple of way of messaging within an iOS application.

Create Notification Observer
Register a function to handle notifications and inside of viewWillAppear or other initializing method.

Handler Method
Notifications can technically send any object type. Here we simply pass an NSString object:

Remove Notification Observer
Remove observer when views go away viewDidDisappear or viewWillDisappear.

For more information, see Apple’s developer pages.

Comments are closed.



  • slide
  • slide
  • slide
  • slide
Casino Canada Online https://therankway.com