skpsmtpmessage in different thread
问题 I have just successfully implemented skpsmtpmessage into my iPhone app. This works fine, but it runs on the main thread, causing the UI to lock up until the operation is complete. Therefore I have tried moving it to a second thread: [NSThread detachNewThreadSelector:@selector(launchJobWithJob:) toTarget:self withObject:jobDescription]; If I do this that way, the class seems to get stuck on the connecting right away, with the only NSLog output being: C: Attempting to connect to server at: mail