In my iOS app, I would like to retrieve a reference to my app delegate using [[UIApplication sharedApplication] delegate]
, however this is returning an instance of class UABaseAppDelegateSurrogate
instead of my custom UIApplicationDelegate
class.
I understand that this surrogate is somehow used for receiving notifications, but do I need this? My app delegate implements all necessary methods for receiving notifications, and I would like to bypass this surrogate class so I can call methods on my custom app delegate. I don't know when this started happening, but I used to get my custom app delegate from [[UIApplication sharedApplication] delegate]
.