进度条/旋转器不在可可中工作

ale*_*rke 0 cocoa objective-c progress

我正在使用NSProgressIndicator,它只在主事件循环后重绘.然而,旋转器永远不会启动或停止.我使用以下代码启动进度指示器:

 [progressIndicator startAnimating];
Run Code Online (Sandbox Code Playgroud)

它也是合成的,并且正确包含在.h和.m文件中.我把它连接到IB.

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

Car*_*rum 6

startAnimating不是一种方法NSProgressIndicator.尝试:

[progressIndicator startAnimation:self];
Run Code Online (Sandbox Code Playgroud)

退房setUsesThreadedAnimation:,这可能会帮助你.