title: ios: dynamically loading functions on app delegate
body: <p>Is it possible in IOS to dynamically load/create a function on a class at runtime?</p>
  
  <p>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?</p>
  
  <p>For instance, this is used for push notifications, but could it be added dynamically by a Push framework behind the scenes at runtime?</p>
  
  <pre><code>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
      ....
  }
  </code></pre>
  
  <p>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?</p>