... To be honest, the system's built-in Activity Indicator View is really ugly.
After referring to projects of others, we modeled the Activity Indicator View ).
The effect is as follows:
Implementation Method:
1. Import the MRActivityIndicatorView. h and MRActivityIndicatorView. m files.
2. import the head file # import "MRActivityIndicatorView. h" where necessary"
3. Declare variables. @ Property (weak, nonatomic) IBOutlet MRActivityIndicatorView * activityIndicatorView;
(You can drag a UIView In the storyboard to indicate the activity indicator and inherit the MRActivityIndicatorView)
4. Call [self. activityIndicatorView startAnimating] to display the information.
5. Call [self. activityIndicatorView stopAnimating] When you need to hide it.
In addition, the default value is blue. To change the color, use self. activityIndicatorView. tintColor = [UIColor blackColor.
It is easy to use. The demo is provided with the MRActivityIndicatorView. h and MRActivityIndicatorView. m files.
Demo download link:
Http://download.csdn.net/detail/hitwhylz/6901477
In addition, code4App has a very complete progress bar demo, which contains many styles. For more information, see. The following link is provided:
Http://code4app.com/ios/MRProgress/527a5de56803fa071d000000
On the way to learning, I will share with you.