Objective-C: How to animate “Loading…” text on a UILabel
问题 In my app I need to display a "Loading" text in an UILabel, repeatedly as follows: Loading Loading. Loading.. Loading... Loading Loading. Loading.. Loading... How can I do it? Any suggestion, please? 回答1: You could easily implement such a behavior yourself – see my example below. But like trojanfoe suggested, I would rather use a nice library like MBProgressHUD or MarqueeLabel - (void) updateLoadingLabel; { if(self.loading) { if([self.labelLoading.text isEqualToString:@"Loading…"]) { self