I want to create a widget by using NSNotificationCenter
in ios8 is that possible?
how to use the NSNotificationCenter
in Widgets. please help me.
Hey Chenna :) Mixing the notification center that's part of the user interface in iOS (or OS X) and NSNotificationCenter
is a common mistake when working with Cocoa. The NSNotificationCenter
class is responsible for notifying your classes on various events which you can assign using the addObserver
or addObserverForName
methods (you can read more in the documentation).
If you want to create Widgets for the Notification Center that is part of the user interface in iOS 8 you should read the article about Extensions in the Today view (AKA widgets) in the App Extension Programming Guide :)