Latest 1.0.1
Homepage https://github.com/kabda/KBActionLimitDemo
License MIT
Platforms ios
Authors

UIControl+kb_limit.h是UIControl的一个Category,用于UIControl的限流,即限流间隔内只响应一次touch事件;

使用方法

设置全局限流间隔:

[UIControl setGlobalLimitTime:2.0];
[UIButton setGlobalLimitTime:2.0];
[UISwitch setGlobalLimitTime:2.0];
[UISlider setGlobalLimitTime:2.0];
[UITextField setGlobalLimitTime:2.0];
[UIPageControl setGlobalLimitTime:2.0];
[UISegmentedControl setGlobalLimitTime:2.0];

单控件独立设置限流间隔:

;

CocoaPods

pod 'UIControl+kb_limit', '~> 1.0.1'

Latest podspec

{
    "name": "UIControl+kb_limit",
    "version": "1.0.1",
    "summary": "init.",
    "description": "UIControl+kb_limitu662fUIControlu7684u6269u5c55uff0cu7528u4e8eu63a7u4ef6u9650u6d41uff0cu5373u5355u4f4du65f6u95f4u5185u53eau54cdu5e94u4e00u6b21u64cdu4f5c.",
    "homepage": "https://github.com/kabda/KBActionLimitDemo",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "kabda": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/kabda/KBActionLimitDemo.git",
        "tag": "1.0.1"
    },
    "source_files": "Classes/*.{h,m}",
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This