Configuring Radial Angles
Send Feedback

Glossary Item Box

Topic Overview


This topic provides an introduction to configuring radial angles on the IGProgressView™ control and using a code example, demonstrates how to configure them.

In this topic


Radial angles summary

The IGProgressViewStyleRadial and IGProgressViewStyleRadialIndeterminate progress types can have their start and end angles customized through the radialStartAngle and radialEndAngle properties respectively. Each property accepts a CGFloat value representing the angle in degrees. The illustration below demonstrates the radialStartAngle of 135.0 and a radialEndAngle of 45.0.

Configuring Radial Angles – Code Example


The code example below sets the view background color to white, instantiates an IGProgressView with its progress set to 30%, with the radial start angle set to 135 degrees, and radial end angle set to 45 degrees.


This code example requires the inclusion of the IG framework; details about how to add this framework are available in the Adding the IG Framework File topic.



In Objective-C:

self.view.backgroundColor = [UIColor whiteColor];
CGFloat centerX, centerY;
centerX = CGRectGetMidX(self.view.bounds);
centerY = CGRectGetMidY(self.view.bounds);
IGProgressView *progressView = [[IGProgressView alloc] initWithStyle:IGProgressViewStyleRadial];
progressView.frame = CGRectMake(centerX - 100, centerY - 100, 200, 200);
progressView.autoresizingMask = UIViewAutoresizingFlexibleTopMargin|UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin|UIViewAutoresizingFlexibleBottomMargin;
progressView.progress = 0.3;
progressView.radialStartAngle = 135.0;
progressView.radialEndAngle = 45.0;
[self.view addSubview:progressView];

In C#:

this.View.BackgroundColor = UIColor.White;
float centerX, centerY;
centerX = this.View.Bounds.Width / 2;
centerY = this.View.Bounds.Height / 2;
IGProgressView progressView = new IGProgressView (IGProgressViewStyle.IGProgressViewStyleRadial);
progressView.Frame = new RectangleF(centerX - 100, centerY - 100, 200, 200);
progressView.AutoresizingMask = UIViewAutoresizing.All;
progressView.Progress = 0.3f;
progressView.RadialStartAngle = 135.0f;
progressView.RadialEndAngle = 45.0f;

Related Content


The following topic provides additional information related to this topic.



The topics in this group cover enabling, configuring, and using the IGProgressView control’s supported features.