/CCIAbacusView

Simple customizable Abacus

Primary LanguageObjective-CMIT LicenseMIT

CCIAbacusView

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Alt text

The total value is displayed in delegate methods. See below.

Appetize.io Demo

Requirements

Header files

<CCIBead.h>
<CCIAbacusDelegate.h>
<CCIAbacusDataSource.h>
<CCIAbacusView.h>

Required mehods

- (int)numberOfColumnsForAbacusView:(CCIAbacusView *)view ;
- (int)abacusView:(CCIAbacusView *)view numberOfBeadsPerSection: (int)sectionNumber;
- (int)abacusView:(CCIAbacusView *)view valueOfBeadsPerSection: (int)sectionNumber;
- (BOOL)showSeparatorForAbacusView:(CCIAbacusView *)view;
- (UIColor *)separatorColorForAbacusView:(CCIAbacusView *)view;
- (CCIBead *)abacusView:(CCIAbacusView *)view setBeadForColumn: (int) column withIndex: (int)index;
- (void)abacusView:(CCIAbacusView *)view didChangeValue: (int)newValue;

Installation

CCIAbacusView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CCIAbacusView'

or

pod 'CCIAbacusView', :git => 'https://github.com/ccosnean/CCIAbacusView.git'

Author

ccosnean, cosneanuc@gmail.com

License

CCIAbacusView is available under the MIT license. See the LICENSE file for more info.