title: How to do GUI action in thread - IOS
body: <p>I have a thread which will call many of my interface functions.. When it call I need to do some GUI action, As I aware GUI need to be done in main thread, still now I was using </p>
  
  <pre><code>            dispatch_async(dispatch_get_main_queue(), ^{
                  // Some method call...
              });
  </code></pre>
  
  <p>It works fine for most of the cases, still I am facing problem here.. for e.g... my interface function is like below...</p>
  
  <pre><code>        void interface_fun(char *name, int user_id) {
                  dispatch_async(dispatch_get_main_queue(), ^{
                      gui_acton_with_name(name, user_id);
                  });
           }
  </code></pre>
  
  <p>Now the name pointer is most of the time I got nil within dispatch call(I guess I am loosing data here), I tried with performselectoronMainthread method.. But I don't know how to use this with multiple parameter.. </p>
  
  <p>Any idea thanks..</p>