How to programmatically add a simple default loading(progress) bar in iphone app

前端 未结 18 2580
你的背包
你的背包 2020-12-12 17:16

I am using http communication in My iPhone app. I want to show a progress bar while it is loading data from server. How can I do it programmatically?

I just want a d

18条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 17:39

    Add Property

    @property (strong, nonatomic) IBOutlet UIActivityIndicatorView *indicator;

    To Start Animating

    [self.indicator startAnimating];

    To Stop Animating

    [self.indicator stopAnimating];

提交回复
热议问题