• Stars
    star
    106
  • Rank 325,871 (Top 7 %)
  • Language
    Objective-C
  • Created almost 10 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The iOS Circular Progress Bar is a great tool to present percentage based information in an elegant and simple way. The default appearance conforms to the beautiful flat design and the center space can be personalized with custom views.

iOS Circular Progress Bar

The iOS Circular Progress Bar is a great tool to present percentage based information in an elegant and simple way. The default appearance conforms to the beautiful flat design and the center space can be personalized with custom views.

Demo video: https://www.youtube.com/watch?v=LRqptLlqtnM

More info at: http://myappcontrols.binpress.com/product/ios-circular-progress-bar/2016

alt tag

Installation

Add all files from the src folder to your project Import as usual: #import "MCPercentageDoughnutView.h" Add QuartzCore.framework to your project

Setup

MCPercentageDoughnutView can be added to your view either from the Interface Builder or through code.

Interface Builder (Xcode 5):

  • Open the Storyboard or Xib file you want to add the pie chart to.
  • Drag a new UIView from the Object Library into your view controller.
  • Resize and position your new UIView as you wish (the pie chart will be drawn on the center of the new UIView).
  • Make sure the new UIView is selected and choose the Identity Inspector tab on Xcode's the Utilities view (on the right).
  • Change the class from UIView to MCPercentageDoughnutView.
  • On the view controller's header file create an IBOutlet property of the type MCPercentageDoughnutView and link it to the object you created on the Interface Builder.

Through Code:

CGRect frame = CGRectMake(x, y, width, height);
MCPercentageDoughnutView *percentageDoughnut = [[MCPercentageDoughnutView alloc] initWithFrame:frame];
[self.view addSubview:percentageDoughnut];

Example Usage

self.percentageDoughnut.dataSource = self;
self.percentageDoughnut.linePercentage = 0.02;
self.percentageDoughnut.percentage = 0.5;
self.percentageDoughnut.animatesBegining = NO;

Credits

Brought to you by MyAppControls team.

Similar Projects

iOS Bar Chart

iOS Simple Color Picker

iOS Pie Chart

More Repositories

1

SwiftResolver

Dependency injection framework for Swift
Swift
25
star
2

ios-bar-chart-view

The iOS Bar Chart is a great tool to represent data in an elegant and simple way. The default appearance has a beautiful flat design, It has built in animation features for presenting, inserting, deleting and updating actions and it is fully customisable, being able to change colors, label text, font, all through properties attributes and delegate methods. The content is managed by a data source object following the built in Apple controls standards.
Objective-C
19
star
3

ios-pie-chart-view

The iOS Pie Chart is a great tool to present information in the form of a pie chart. The default appearance hahs a beautiful flat design, the control has built in animation features for presenting, inserting, deleting and updating actions and it is fully customisable, accepting color changes, text and font customisation. All through properties attributes and delegate methods. The content is managed by a data source object following the built in Apple controls standards.
Objective-C
17
star
4

ios-color-picker

The iOS Color Picker is a simple tool to that shows a list of colors and allows the users to select one of them, sending the feedback to your application. The default appearance has a beautiful flat design, It has built in animation features for presenting actions.
Objective-C
13
star
5

SwiftMarkdown

A library for parsing and formatting strings with markdown tags in swift
Swift
10
star
6

SwiftCodeGen

Swift CLI tools for generating Swift code
Swift
6
star
7

genetic-algorithm-string-matcher

First try on genetic algorithms! 🤓
Python
1
star