title: ios - How to call a method from another class dynamically in a string?
body: <p>I'm new to iPhone development,I want to call a method from another class in String</p>
  
  <p>In LoginSuccess.m</p>
  
  <pre><code>- (void)Post:(NSString *)url AndSecondStr:(NSString *)postData AndThirdStr:(NSString *)contentType
  </code></pre>
  
  <p>In Register.m</p>
  
  <pre><code>LoginSuccess *loginViewInstance =  [[LoginSuccess alloc]initWithNibName:@"LoginSuccess" bundle:nil];
  [loginViewInstance Post:TxtEmailId AndSecondStr:TxtUserName AndThirdStr:serializeObject];
  </code></pre>
  
  <p>above one is executed,but I want to call that method in String like</p>
  
  <pre><code>NSString *result = [loginViewInstance Post:TxtEmailId AndSecondStr:TxtUserName AndThirdStr:serializeObject];
  </code></pre>
  
  <p>Any ideas? Thanks in advance.</p>