gpt4 book ai didi

iphone - 如何在 UIActivityIndi​​catorView 中添加图像

转载 作者:行者123 更新时间:2023-12-03 20:50:15 24 4
gpt4 key购买 nike

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

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

图像加载。

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

谢谢

最佳答案

你不能这么做。 UIActivityIndi​​catorView 绘制系统事件指示器。如果您想显示自定义图像,那么您不应该使用 UIActivityIndi​​catorView。创建自定义 View ,或者如果您只想显示图像,请使用 UIImageViewUIImageView 还支持循环动画多个图像(如果您愿意的话)。

关于iphone - 如何在 UIActivityIndi​​catorView 中添加图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1136050/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com