佚名通过本文主要向大家介绍了ios 多线程 gcd,ios gcd,gcd多线程,gcd开关柜,gcd配电柜等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题:iOS多线程 iOS线程问题 GCD
描述:
解决方案1:
描述:
在表格视图头部添加一个滚动视图,随之NSTimer的刷新不断滚动,但是怎么实现在拖拽住表格时,滚动视图依旧滚动,而不会停止下来????
解决方案1:
NSTimer *timer = [NSTimer timerWithTimeInterval:1.f
target:self
selector:@selector(onTimer:)
userInfo:nil
repeats:YES];
[[NSRunLoop currentRunLoop] addTimer:timer forMode:NSRunLoopCommonModes];
NSRunLoopCommonModes 是关键