title: Objective C calling method dynamically with a string
body: <p>Im just wondering whether there is a way to call a method where i build the name of the method on the fly with a string.</p>
  
  <p>e.g. I have a method called loaddata</p>
  
  <pre><code>-(void)loadData;
  </code></pre>
  
  <p>to call this i would normally call it like</p>
  
  <pre><code>[self loadData];
  </code></pre>
  
  <p>But i want to be able to call it dynamically with a string e.g.</p>
  
  <pre><code>NSString *methodName = [[NSString alloc] initWithString:@"loadData"];
  [self methodName];
  </code></pre>
  
  <p>This is a stupid example but i hope you get my point. I am using it for databinding classes that I am setting up for my IPad application. Hard to explain but to get it to fire I need to work out how to call a method with a string.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>