Is it possible in IOS to dynamically load/create a function on a class at runtime?
I'm specifically thinking for example of adding a class the the app delegate at runtime, but I'm not sure it is even possible in the language?
For instance, this is used for push notifications, but could it be added dynamically by a Push framework behind the scenes at runtime?
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
....
}
As an alternative, could it simply be defined in the framework, outside the app delegate file, but still a part of the app delegate logic?