December 12, 2012
iOS SDK support only one type of activity indicators (spinner) with fixed size. For effective iOS App Development, iOS5 and above support for customising the colour of the spinner.
UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
activityIndicator.hidesWhenStopped = NO;
<strong>[activityIndicator setColor:[UIColor redColor]];</strong>
Creating different types of ActivityIndicator Or Spinner
Implementation of spinners
TJSppiner has ability to achieve or change colour, size pattern, image, rotation speed etc.
1. Implementation of line base spinners (similar as iOS Activity indicator).
A. You can change inner and outer radius of spinner
B. You can change number of line to be appear in the circle of the spinner.
C. You can change appearance of spinner using its property like colour, pattern, caps/stork, image etc…
TJSpinner *spinner = [[TJSpinner alloc] initWithSpinnerType:kTJSpinnerTypeActivityIndicator];
spinner.hidesWhenStopped = YES;
[spinner setColor:[UIColor blackColor]];
2. Implementation of BeachBall spinners (similar as iMAC desktop beach ball).
A. You can change radius (size) of the beach ball.
TJSpinner *beachBallSpinner = [[TJSpinner alloc] initWithSpinnerType:kTJSpinnerTypeBeachBall];
beachBallSpinner.hidesWhenStopped = YES;
3. Implementation of Circular spinners (similar as web).
A. You can change radius (size) of the Circular spinners.
TJSpinner *circularSpinner = [[TJSpinner alloc] initWithSpinnerType:kTJCircularSpinner];
circularSpinner.hidesWhenStopped = YES;
circularSpinner.radius = 10;
circularSpinner.pathColor = [UIColor whiteColor];
circularSpinner.fillColor = [UIColor redColor];
circularSpinner.thickness = 7;
I do agree with all of the ideas you have unfilled in your send. They¡¯re fantastically influential and will definitely labor. Immobile, the posts are very succinct for novices. May possibly you entertain enlarge them a little commencing next time? Thanks for the post.
good but…………sooooooo sooooooo.
Good but need performance tuning. Why you redraw every time, I think it will be much better to transform layers, for almost all spinners no need to redraw.
Awesome Spinner control. Thanks!!!!
good one !!!
Your own personal capability and kindness in dealing with this subject was very useful!