Latest 1.0.1
Homepage https://github.com/wolfcon/EdgeSlicker
License MIT
Platforms ios 8.0
Authors

Hide tab bar or other similar view on edge

Usage

Define a var that used to mark the position for slicker.

@property (assign, nonatomic) CGPoint currentScrollOffset;

ScrollViewDelegate

  • scrollViewDidScroll
if ([scrollView isEqual:<#your scroll view responding#>]) {
    [<#your Tabbar? or other view#> viewDidRespondAutoHideWhenScrollView:scrollView 
            beginDraggingContentOffset:self.currentScrollOffset];
}
  • scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate

    if ([scrollView isEqual:<#your scroll view responding#>]) {
    [<#your Tabbar? or other view#> respondingScrollViewDidEndDragging];
    }
  • scrollViewWillBeginDragging:(UIScrollView *)scrollView {
if ([scrollView isEqual:<#your scroll view responding#>]) {
    self.currentScrollOffset = scrollView.contentOffset;

    if (scrollView.contentOffset.y < 0) {
        self.currentScrollOffset = CGPointZero;
        return;
    }
}

Latest podspec

{
    "name": "EdgeSlicker",
    "version": "1.0.1",
    "summary": "Hide tab bar or other similar view on edge",
    "description": "Hide tab bar or other similar view on edge",
    "homepage": "https://github.com/wolfcon/EdgeSlicker",
    "license": "MIT",
    "authors": {
        "Frank": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/wolfcon/EdgeSlicker.git",
        "tag": "1.0.1"
    },
    "source_files": "EdgeSlicker/*.{h,m}"
}

Pin It on Pinterest

Share This