Skip to content

Instantly share code, notes, and snippets.

@bouchtaoui-dev
Created January 12, 2016 13:57
Show Gist options
  • Select an option

  • Save bouchtaoui-dev/5afd6aa74f6c86b35f9c to your computer and use it in GitHub Desktop.

Select an option

Save bouchtaoui-dev/5afd6aa74f6c86b35f9c to your computer and use it in GitHub Desktop.
NSThread *thread = [[NSThread alloc] initWithTarget:self
selector:@selector(run:)
object:nil];
[thread start];
//...
//...
- (void) run: (id) object{
NSLog(@"I'm running in another thread :D");
}
/* This is a simple example to create another thread and run it by calling the start method. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment