MBProgressHud with gif image

前端 未结 4 765
傲寒
傲寒 2021-02-11 01:48

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:21

    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...

提交回复
热议问题