Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Mac OS X 上没有像 iOS 的 UIActivityIndicatorView 一样的“NSActivityIndicatorView”吗?
如何在长时间活动中显示旋转的“齿轮”?
您可以使用 NSProgressIndicator。
这是它的初始化。
NSProgressIndicator* indicator = [[[NSProgressIndicator alloc] initWithFrame:NSMakeRect(20, 20, 30, 30)] autorelease]; [indicator setStyle:NSProgressIndicatorSpinningStyle];