我有这样的代码:
[self performSelectorInBackground:@selector(indicator) withObject:nil];
[self mail]; //opening my controller of e-mail sending
- (void)indicator
{
[actView startAnimating];
}
这工作正常,但我担心线程安全。我没有在第二个线程中分配内存,但 smth 告诉我这太简单了:)
我有这样的代码:
[self performSelectorInBackground:@selector(indicator) withObject:nil];
[self mail]; //opening my controller of e-mail sending
- (void)indicator
{
[actView startAnimating];
}
这工作正常,但我担心线程安全。我没有在第二个线程中分配内存,但 smth 告诉我这太简单了:)