问题描述
我想将图像添加到 initWithActivityIndicatorStyle
中,而不是使用其他像
i want to add image into initWithActivityIndicatorStyle
instead of using the others like
UIActivityIndicatorViewStyleWhiteLarge
。因此,当来到加载页面时,图像将充当
UIActivityIndicatorViewStyleWhiteLarge
. So, when come to loading page, the image will act as
图像加载。
任何帮助,我我真的很感激。 ^^
Any help, i am truly appreciate it . ^^
谢谢
推荐答案
你不能这样做。 UIActivityIndicatorView
绘制系统活动指标。如果要显示自定义图像,则不应使用 UIActivityIndicatorView
。创建自定义视图,或者如果您只想显示图像,请使用 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.
这篇关于如何在UIActivityIndicatorView中添加图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!