要运行示例项目,请首先从回购克隆,然后在 Example 目录中运行 pod install
总价值显示在代理方法中。见下文。
<CCIBead.h>
<CCIAbacusDelegate.h>
<CCIAbacusDataSource.h>
<CCIAbacusView.h>
- (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;
CCIAbacusView 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile
即可
pod 'CCIAbacusView'
或
pod 'CCIAbacusView', :git => 'https://github.com/ccosnean/CCIAbacusView.git'
ccosnean, [email protected]
CCIAbacusView 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。