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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.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 进度条/微调器在cocoa中不工作_Objective C_Cocoa_Progress - Fatal编程技术网

Objective c 进度条/微调器在cocoa中不工作

Objective c 进度条/微调器在cocoa中不工作,objective-c,cocoa,progress,Objective C,Cocoa,Progress,我使用的是一个NSProgressIndicator,它只在主事件循环之后重新绘制。但是,微调器从不启动或停止。我正在使用以下代码启动进度指示器: [progressIndicator startAnimating]; 它也被合成,并正确地包含在.h和.m文件中。我在IB中连接了它 代码似乎不适用于进度条或微调器。startAnimating不是NSProgressIndicator的方法。尝试: [progressIndicator startAnimation:self]; 另外,请查

我使用的是一个NSProgressIndicator,它只在主事件循环之后重新绘制。但是,微调器从不启动或停止。我正在使用以下代码启动进度指示器:

 [progressIndicator startAnimating];
它也被合成,并正确地包含在.h和.m文件中。我在IB中连接了它


代码似乎不适用于进度条或微调器。

startAnimating
不是
NSProgressIndicator
的方法。尝试:

[progressIndicator startAnimation:self];

另外,请查看
设置UseSThreadedAnimation:
,这可能会对您有所帮助。

开始初始化
不是
程序指示器的一种方法。尝试:

[progressIndicator startAnimation:self];

另外,请查看
setUsesThreadedAnimation:
,这可能会帮助您解决问题。

您的问题不清楚。你到底想做什么,什么不起作用?你的问题不清楚。你到底想做什么,什么不起作用?