Display activity indicator inside UIButton

后端 未结 10 1815
囚心锁ツ
囚心锁ツ 2021-01-31 17:36

I would like to change the content of a UIButton to an ActivityIndicator after it is pressed.

I know buttons have an imageView and a titleLabel, but I don\'t know how to

10条回答
  •  忘了有多久
    2021-01-31 18:14

    i have written a library in swift, it has 7 different styles and animations to show an indicatorview in uibutton, here it is

    https://github.com/farshadjahanmanesh/loady

提交回复
热议问题