如何在UIActivityIndi​​catorView中添加图像 [英] How to add image in UIActivityIndicatorView

查看:146
本文介绍了如何在UIActivityIndi​​catorView中添加图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将图像添加到 initWithActivityIndi​​catorStyle 中,而不是使用其他像

i want to add image into initWithActivityIndicatorStyle instead of using the others like

UIActivityIndi​​catorViewStyleWhiteLarge 。因此,当来到加载页面时,图像将充当

UIActivityIndicatorViewStyleWhiteLarge. So, when come to loading page, the image will act as

图像加载。

任何帮助,我我真的很感激。 ^^

Any help, i am truly appreciate it . ^^

谢谢

推荐答案

你不能这样做。 UIActivityIndi​​catorView 绘制系统活动指标。如果要显示自定义图像,则不应使用 UIActivityIndi​​catorView 。创建自定义视图,或者如果您只想显示图像,请使用 UIImageView UIImageView 还支持在循环中动画几个图像。

You can't do that. UIActivityIndicatorView draws the system activity indicators. If you want to display a custom image then you shouldn't be using a UIActivityIndicatorView. Either create a custom view, or if you just want to display an image use a UIImageView. UIImageView also supports animating several images in a loop if you want to do that.

这篇关于如何在UIActivityIndi​​catorView中添加图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆