当前位置: 代码迷 >> Iphone >> IOS创建线程有关问题
  详细解决方案

IOS创建线程有关问题

热度:177   发布时间:2016-04-25 06:49:22.0
IOS创建线程问题
C/C++ code
- (void)startRemote{    NSThread *myThread = [[NSThread alloc]                          initWithTarget:self selector:mThreadFunc object:self];    [myThread start];}-(void)mThreadFunc:(id)param{    //something to do    }

我打算在startRemote中启动线程执行函数mThreadFunc
xcode直接红色提示 “使用了没有declared表示符号mThreadFunc”
新手求教

------解决方案--------------------
selector:@selector(mThreadFun)
  相关解决方案