How to add image in UIActivityIndicatorView

前端 未结 1 1279
星月不相逢
星月不相逢 2020-12-20 04:30

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

UIActivityIndicatorViewStyleWhiteLarge. So, when

1条回答
  •  借酒劲吻你
    2020-12-20 04:39

    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.

    0 讨论(0)
提交回复
热议问题