post(name:object:userInfo:)
Creates a notification with information, and posts it to the receiver.
Declaration
func post(name aName: NSNotification.Name, object anObject: String?, userInfo aUserInfo: [AnyHashable : Any]? = nil)Parameters
- aName:
Name of the notification to post. Must not be
nil. - anObject:
Sender of the notification. May be
nil. - aUserInfo:
Dictionary containing additional information. May be
nil.
Discussion
This method invokes postNotificationName(_:object:userInfo:deliverImmediately:) with deliverImmediately:NO.