All Projects → eliaskg → EKSpinner

eliaskg / EKSpinner

Licence: other
EKSpinner is an extension for the Cappuccino framework to display 'loading-indicator-spinners' dynamically to any background color without having to create gif-animations.

Programming Languages

Objective-J
44 projects

EKSpinner

This is an extension for the Cappuccino framework to display 'loading-indicator-spinners' dynamically to any background color without having to create gif-animations.

A live demonstration can be seen here.

Installation

Simply put the 'EKSpinner' folder in your 'Frameworks' directory and add the following line to the top of your application's AppController:

@import "Frameworks/EKSpinner/EKSpinner.j"

Usage

This is an example for adding a EKSpinner to your view:

var spinner = [[EKSpinner alloc] initWithFrame:CGRectMake(40, 40, 18, 18) andStyle:@"medium_white"];
[spinner setIsSpinning:YES];
[contentView addSubview:spinner];

For stopping the spinner simply set the isSpinning method to NO.

The default animation interval is 100ms but you can also set your own by using the method

[spinner setInterval:200];

This has to be done before the the spinner was activated by setSpinning: YES. Notify that the faster the interval the more system performance the spinner will need.

Styles:

The following styles are provided:

14x14 small_white small_gray small_black

18x18 medium_white medium_gray medium_black

30x30 big_white big_gray big_black

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].