Monday, May 9, 2011

NSThread Example 3

NSThread creation example by NSThread alloc and init.

NSThread *myThread = [[NSThread alloc] initWithTarget:self selector:@selector(threadFunc:) object:nil];
[myThread start];


Simple enough!