当视图消失时如何使线程暂停或停止我这样做:
- (void)viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:(BOOL)animated];
[NSThread sleepForTimeInterval:10];
}
但没用
当视图消失时如何使线程暂停或停止我这样做:
- (void)viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:(BOOL)animated];
[NSThread sleepForTimeInterval:10];
}
但没用