Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 如何将NSthread函数从一个视图传递到另一个视图_Objective C_Ios4_Iphone Sdk 3.0 - Fatal编程技术网

Objective c 如何将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

例:


我如何实现这个目标?

只要改变我不知道你的**在那里做的目标,但他们不应该改变,即改变

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];