title: call a function using thread in xcode
body: <p>i have created a thread in xcode and i have given the function name to be called from that thread.
    but my problem is that the function name which is given to call is not being called(came to know when put a breakpoint in that function)</p>
  
  <p>code:</p>
  
  <pre><code> NSThread* myThread; 
   [myThread start]; 
   [self performSelector:@selector(func1:) onThread:myThread withObject:nil waitUntilDone:false]
  </code></pre>
  
  <p>and later i tried this one also:</p>
  
  <pre><code>NSThread* myThread = [[NSThread alloc] initWithTarget:self selector:@selector(func1:)object:nil];
  [myThread start]; 
  </code></pre>
  
  <p>above func1 is the name of the function to be called.</p>
  
  <p>so can any one please tell me how to create the thread and call func1 from there....</p>