Objective c 如何将NSthread函数从一个视图传递到另一个视图
我正在使用NSThread 例:Objective c 如何将NSthread函数从一个视图传递到另一个视图,objective-c,ios4,iphone-sdk-3.0,Objective C,Ios4,Iphone Sdk 3.0,我正在使用NSThread 例: 我如何实现这个目标?只要改变我不知道你的**在那里做的目标,但他们不应该改变,即改变 NSThread *driverThread = [[NSThread alloc] initWithTarget:self selector:@selector(pingHomeThread) object:nil]; 到 良好的格式是您的朋友。请注意,从主线程以外的其他线程更新任何UIKit元素可能会导致更新延迟和不可预测的行为。 NSThread *driverThre
我如何实现这个目标?只要改变我不知道你的**在那里做的目标,但他们不应该改变,即改变
NSThread *driverThread = [[NSThread alloc] initWithTarget:self selector:@selector(pingHomeThread) object:nil];
到
良好的格式是您的朋友。请注意,从主线程以外的其他线程更新任何UIKit元素可能会导致更新延迟和不可预测的行为。
NSThread *driverThread = [[NSThread alloc] initWithTarget:self selector:@selector(pingHomeThread) object:nil];
NSThread *driverThread = [[NSThread alloc] initWithTarget:yourOtherView selector:@selector(pingHomeThread) object:nil];