Latest1.0
Homepagehttps://github.com/Insfgg99x/FGNumberSetpper
LicenseMIT
Platformsios 8.0, requires ARC
FrameworksFoundation, UIKit
Authors

FGNumberStepper 简单易用的选择数量控件

FGNumberStepper

Usage

__weak typeof(self) wkself = self;
    FGNumberStepper *setpper = [[FGNumberStepper alloc] initWithNumber:1 minmualNumber:1 changeAction:^(FGNumberStepper *s, NSInteger number) {
        CGFloat price = 3.0;
        CGFloat total = price * number;
        wkself.moneyLb.text = [NSString stringWithFormat:@"共%.1f元",total];
    }];
    setpper.canInput = YES;
    setpper.frame = CGRectMake(screenw/2-50, 280, 100, 30);
    [self.view addSubview:setpper];

Installtion

pod "FGNumberStepper"

Latest podspec

{
    "name": "FGNumberStepper",
    "version": "1.0",
    "summary": "FGNumberStepper convenice amount picker",
    "homepage": "https://github.com/Insfgg99x/FGNumberSetpper",
    "license": "MIT",
    "authors": {
        "CGPointZero": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Insfgg99x/FGNumberSetpper.git",
        "tag": "1.0"
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "lib/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This