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.
Simply put the 'EKSpinner' folder in your 'Frameworks' directory and add the following line to the top of your application's AppController:
This is an example for adding a EKSpinner to your view:
var spinner = [[EKSpinner alloc] initWithFrame:CGRectMake(40, 40, 18, 18) andStyle:EKSpinnerStyleMediumWhite]; [spinner setSpinning:YES]; [contentView addSubview:spinner];
For stopping the spinner simply set the
spinning method to
The default animation interval is 100ms but you can also set your own by using the method
This has to be done before the the spinner was activated by
Notify that the faster the interval the more system performance the spinner will need.
The following styles are provided:
14x14 EKSpinnerStyleSmallWhite EKSpinnerStyleSmallGray EKSpinnerStyleSmallBlack
18x18 EKSpinnerStyleMediumWhite EKSpinnerStyleMediumGray EKSpinnerStyleMediumBlack
30x30 EKSpinnerStyleLargeWhite EKSpinnerStyleLargeGray EKSpinnerStyleLargeBlack