So back in the dark ages, we registered to receive notifications like this: -[NSNotificationCenter addObserver:selector:name:object:] In other words, the target-action pattern. When the notification is received, call this selector (action) on this target. And all was well. Then in iOS 4, blocks (closures) were added to iOS. And it was the hip cool thing to […]
↧