iPhone SDK 加载屏幕
我的应用程序中有一个视图,其中使用一张非常大的高分辨率照片,并且需要一些时间来加载。发生这种情况时如何放置加载屏幕?那种带有旋转加载轮的加载屏幕,这样应用程序看起来就不会冻结?预先感谢您的任何帮助!
编辑:请注意,我只是从主包加载图像,而不是 URL
I have a view in my app where I use a very large photo that is Hi-Res and takes a bit of time to load. How do I put a loading screen while this is happening? The kind of loading screen with the spinning loading wheel so that the app does not look like it has frozen? Thanks in advance for any help!
Edit: Note that I am simply loading the image from the main bundle and not a URL
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看这些开源活动指标。
TDHUDProgressBar
看起来像 Tweetie 的/Twitter 的进度栏。
MBProgressHUD
出现并包含活动指示器的视图,非常类似于私有类
UIProgressHUD
。Check out these Open-Source activity indicators.
TDHUDProgressBar
Looks like Tweetie's/Twitter's Progress bar.
MBProgressHUD
A view that appears and contains a Activity Indicator, much like the Private Class
UIProgressHUD
.将活动指示器(旋转轮)放入您的视图中,并在高分辨率图像加载完成后将其隐藏。
Put an activity indicator (the spinning wheel) into your view and hide it when your hi-res image has finished loading.