Coder Social home page Coder Social logo

stevegeek / ekspinner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eliaskg/ekspinner

0.0 2.0 1.0 163 KB

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

Home Page: http://www.thisagree.com/EKSpinner

Objective-J 100.00%

ekspinner's Introduction

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

ekspinner's People

Contributors

stevegeek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.