Do you know how to add an observer (or a notification) to a standard delegate method call ? (I know this is a little weird/ not what observers were intended for)
I’m ultimately trying to catch the page change of a scrollview in a uiscrollview category method.
I can observe the content offset of a scrollview like this
[self addObserver:self forKeyPath:@”contentOffset” options:(NSKeyValueObservingOptionNew) context:NULL];
,but rather than being notified when the contentOffset is changed, I’d prefer to be notified when scrolling has ended or deceleration will begin.
I’m working on some advanced functionality for scrollviews (meaning I already know I can catch delegate call by just assigning a delegate)
any ideas ?
If you really need a notification for some reason, why not implement the delegate methods for which you want to be notified and fire off your own notifications from them?