So my goal is to deliver a notification to another class with using NSNotificationCenter
, I also want to pass object
with the notification to the other class
, how should I do this?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- iOS (objective-c) compression_decode_buffer() retu
- how to find the index position of the ARRAY Where
相关文章
- 现在使用swift开发ios应用好还是swift?
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- didBeginContact:(SKPhysicsContact *)contact not in
- Custom Marker performance iOS, crash with result “
- Why is my library not able to expand on the CocoaP
Just call any method for posting notifications as described here, for instance :
to post a notification :
where
userInfo
is a dictionary containing useful objects.On the other side to register for notifications :
You could also check Apple's Notification Programming Topics.
You must first register a notification name
And then post a notification with a dictionary of parameters
and the method will be