单项选择题
下面方法中,哪一个方法没有创建新的线程()。
A.+(void)detachNewThreadSelector:(SEL)selector toTarget:(id)target withObject:(id)argument;
B.-(id)initWithTarget:(id)target selector:(SEL)selector object:(id)argument;
C.-(void)performSelectorInBackground:(SEL)aSelector withObject:(id)arg;
D.-(void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)argwaitUntilDone:(BOOL)wait;
点击查看答案
相关考题
-
单项选择题
关于NSURLConnection同步通讯和异步通讯,下面说法正确的是()。
A.同步通讯是指发送数据后,不等接收方回应,接着发下一个数据
B.异步通讯时会阻塞当前线程
C.发送同步通讯时,系统会自动创建一个单独的线程
D.一般不在主线程中使用同步通讯,因为会引起主线程阻塞 -
单项选择题
iOS开发中,HTTPS通讯是在什么位置来保障安全性()。
A.NSURLRequest方法里
B.NSURLRequest代理方法里
C.NSURLConnection方法里
D.NSURLConnection代理方法里 -
单项选择题
下面关于方法:[[[object method1] method2] method3:[object method4]];中的method调用顺序是()。
A.1、2、3、4
B.1、2、4、3
C.4、1、2、3
D.4、3、2、1
