Slide 7
Slide 7 text
ྫɿNotification
7
class FugaClass {
init() {
NotificationCenter.default.addObserver(
self,
selector: #selector(self.didReceivedNotification(_:)),
name: .init("Animal"),
object: nil
)
}
@objc
func didReceivedNotification(_ notification: Notification) {
}
}