Created
January 12, 2016 13:57
-
-
Save bouchtaoui-dev/5afd6aa74f6c86b35f9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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