IOS development-ios7 style circle Activity Indicator (custom Activity Indicator View)

Source: Internet
Author: User

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


In addition, code4App has a very complete progress bar demo, which contains many styles. For more information, see. The following link is provided:


On the way to learning, I will share with you.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.