I am trying to listen for UIViewController methods being triggered (-viewDidLoad, -viewDidAppear, -viewDidUnload, -viewDidDisappear and so on) without modifying the actual code in the methods. Is this impossible? I’m trying to have an observer in another class listen in for those methods being called, but I don’t want to add postNotifications: to the View Controller. Do I have to?
I am trying to listen for UIViewController methods being triggered ( -viewDidLoad , -viewDidAppear
Share
No, it is not possible. You will have to add
postNotifications:I’m afraid.