Latest 0.0.2
Homepage https://github.com/kevll/LLStepper
License MIT
Platforms ios 8.0, requires ARC
Authors

iOS digital accuser control which can be added , subtracted and input

record

How to use LLStepper

  • Installation with CocoaPods:pod ‘LLStepper’
  • Manual import:
  • Drag All files in the LLStepper folder to project
  • Import the main module:import LLStepper

Usage

创建、初始化:

stepper = LLStepper()
stepper.bounds = CGRect.init(x: 0, y: 0, width: 150, height: 30)
stepper.center = self.view.center
self.view.addSubview(stepper)
stepper.value = 1         //设置加减器值
stepper.stepValue = 1     //设置步长
stepper.maximumValue = 10 //设置加减器最大值
stepper.minimumValue = 1  //设置加减器最小值
stepper.delegate = self   //设置代理

实现代理方法:

//加减器值改变回调方法
func stepperValueChanged(_ stepper: LLStepper, _ value: Int) {
    numLbl.text = "数量:"+"(value)"
}

Contact & Help

Please fell free to contact me if there is any problem when using the library.

  • twitter:https://twitter.com/kevliule
  • weibo:http://weibo.com/kevll
  • email:[email protected]
  • github:https://github.com/kevll

Latest podspec

{
    "name": "LLStepper",
    "version": "0.0.2",
    "summary": "iOS digital accuser control which can be added , subtracted and input.",
    "description": "u53efu8f93u5165u3001u52a0u51cfu7684iOSu6570u91cfu52a0u51cfu5668u63a7u4ef6",
    "homepage": "https://github.com/kevll/LLStepper",
    "license": "MIT",
    "authors": {
        "kevll": "[email protected]"
    },
    "social_media_url": "http://twitter.com/kevliule",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/kevll/LLStepper.git",
        "tag": "0.0.2"
    },
    "source_files": "LLStepper/*.{swift}",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This