[英]displaying an NSProgressIndicator
I would like to display an indeterminate NSProgressIndicator
in my app, but I can't find anything online that tells me explicitly how to do it. 我想在我的应用程序中显示一个不确定的
NSProgressIndicator
,但我在网上找不到任何明确告诉我如何操作的东西。 Could someone point me to some sort of tutorial or provide me some example code? 有人能指点我某种教程或提供一些示例代码吗?
If you want a progress view (a horizontal bar) you should use UIProgressView
. 如果需要进度视图(水平条),则应使用
UIProgressView
。 If you want an indeterminate spinning activity indicator, you can use a UIActivityIndicatorView
. 如果需要不确定的旋转活动指示器,可以使用
UIActivityIndicatorView
。 Both of these can be added to a storyboard or NIB, or can be added programmatically in iOS. 这两个都可以添加到故事板或NIB,或者可以在iOS中以编程方式添加。 Both of those two class references include links to samples.
这两个类引用都包含指向样本的链接。
NSProgressIndicator
is not an iOS control. NSProgressIndicator
不是iOS控件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.