MBProgressHud with gif image

前端 未结 4 1877
栀梦
栀梦 2021-02-11 01:46

Can I use gif image instead of default loading indicator? I am using this code so far but not getting any result. Can anyone suggest what is wrong in this code?



        
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-11 02:23

    You can do this by creating a UIImageView that animates a set of images, and then set the customView property of your MBProgressHUD to be that UIImageView.

    Here's a tutorial about creating a UIImageView that animates the images: Create Custom Activity Indicator for your iOS App

    link to the tutorial

    Hope it help...

提交回复
热议问题