Latest 1.0.3
Homepage https://github.com/sofach/SFHidesOnSwipe
License MIT
Platforms ios 5.0, requires ARC
Authors

SFHidesOnSwipe (support ios5+)

add hidesOnSwipe to view

Installation with CocoaPods


pod 'SFHidesOnSwipe'

Usage

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [yourview sf_hidesOnSwipeScrollView:yourscrollview fromFrame:orignFrame toFrame:finalFrame];
}

- (void)dealloc { // 由于有监听scroll,这里必须设置滑动的scrollview为nil,从而取消监听
    [yourview sf_hidesOnSwipeScrollView:nil fromFrame:orignFrame toFrame:finalFrame];
}

enjoy it

Latest podspec

{
    "name": "SFHidesOnSwipe",
    "version": "1.0.3",
    "summary": "add hidesOnSwipe to view",
    "description": "add hidesOnSwipe to view, like navigationBar",
    "homepage": "https://github.com/sofach/SFHidesOnSwipe",
    "license": "MIT",
    "authors": {
        "sofach": "[email protected]"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/sofach/SFHidesOnSwipe.git",
        "tag": "1.0.3"
    },
    "source_files": "SFHidesOnSwipe/lib/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This