如何在 iPhone 上显示加载边框?
我正在构建一个应用程序,它从网络加载内容以填充 TableView。
我想添加某种加载指示器,以便屏幕不只包含空白表格。
我在想这样的事情:
(来源:iclarified.com)
我一直在尝试在文档和谷歌上查找它,但说实话,我不知道要搜索什么。有什么指点吗?或者还有其他方法我应该这样做吗?
I'm building an application where it loads contents off of the web to populate a TableView.
I would like to add some sort of loading indicator so that the screen won't just contain the blank table.
I was thinking about something like this:
(source: iclarified.com)
I've been trying to look it up on documentation and Google, but to be honest don't know what to search for. Any pointers? Or is there any other way I should do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有两种可能的方法:
UIProgressView
。Two possible ways to do it:
UIProgressView
on top of it.您可能需要 UIActivityIndicatorView
http://developer .apple.com/iphone/library/documentation/uikit/reference/UIActivityIndicatorView_Class/Reference/UIActivityIndicatorView.html
You probably want the UIActivityIndicatorView
http://developer.apple.com/iphone/library/documentation/uikit/reference/UIActivityIndicatorView_Class/Reference/UIActivityIndicatorView.html