I'm having an NSObject
class having some methods, in my program execution i will call methods inside this NSObject
class so whenever i call any of instance or class methods of this class i need some method like UIViewControllers
viewWillAppear
which calls whenever the view gets loads, How can i do this?
Any help is thanks in advance.
You mean whenever you're calling a method inside a (subclass of) NSObject, you want to be notified of this? Maybe you can something fancy with key-value observing or something...
But really, I'm wondering why you would want to do something like that.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.