Latest 1.0
Homepage https://github.com/Insfgg99x/UINavigationController-SmartPush
License MIT
Platforms ios 7.0, requires ARC
Authors

UINavigationController+SmartPush

一个可以让UINavigationController push到下一界面时自动隐藏底部UITabbar,pop回来时自动显示底部UITabbar的小工具。

  • 普通写法:
SomeViewController *some = [SomeViewController new];
self.hidesBottomBarWhenPushed = YES;//push时隐藏底部tabbar
[self.navigationController pushViewController: some animated : YES];
self.hidesBottomBarWhenPushed = NO;//pop时显示底部tabbar
  • SmartPush写法:
SomeViewController *some = [SomeViewController new];
[self.navigationController pushViewController: some animated : YES];

什么都不用做,就可以是达到普通写法的效果~

使用方法(Usage)

  • CocoaPods
pod repo update
pod 'SmartPush'
  • 或者手动添加SmartPush文件夹至项目

🚀🚀🔥然后就完了只能push了,你不用写一句代码就自动可以实现push与pop时底部tabbar的隐藏于现实控制了。

你可以在Controller中关闭只能push(默认开启),关闭智能push:

self.fg_disableSmartPush = YES;

效果演示图

SmartPush

Latest podspec

{
    "name": "SmartPush",
    "version": "1.0",
    "summary": "UINavigationController pushu5230u4e0bu4e00u754cu9762u65f6u81eau52a8u9690u85cfu5e95u90e8UITabbaruff0cpopu56deu6765u65f6u81eau52a8u663eu793au5e95u90e8UITabbar",
    "homepage": "https://github.com/Insfgg99x/UINavigationController-SmartPush",
    "license": "MIT",
    "authors": {
        "CGPointZero": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Insfgg99x/UINavigationController-SmartPush.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "SmartPush/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This