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

Hide tab bar or other similar view on edge

Todo

  1. refactor (less injection)
  2. repair the jumping when drag up and down

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.2",
    "summary": "Hide tab bar or other similar view on edge",
    "description": "Hide tab bar or other similar view on edgen, usage is in https://github.com/wolfcon/EdgeSlicker",
    "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.2"
    },
    "source_files": "EdgeSlicker/*.{h,m}"
}

Pin It on Pinterest

Share This