Latest 0.0.2
Homepage https://github.com/yuyedaidao/YQPrensetViewController
License MIT
Platforms ios 6.0, requires ARC
Dependencies pop
Authors

YQPrensetViewController

带导航的弹出视图控制器

使用说明

显示

  YQNavigationController *nav = [[YQNavigationController alloc] initWithSize:CGSizeMake(250, 300) rootViewController:nil];
  nav.touchSpaceHide = YES;//点击没有内容的地方消失
  nav.panPopView = YES;//滑动返回上一层视图
  RootViewController *root = [[RootViewController alloc] init];
  nav.rootViewController = root;
  root.title = @"root";
  [nav show:YES animated:YES];

push&pod

 __weak typeof(self) my = self;
[self.navigationBar setLeftBlock:^{
    [my.yqNavigationController popYQViewControllerAnimated:YES];
}];

self.navigationBar.rightTitle = @"other";
[self.navigationBar setRightBlock:^{
    OtherViewController *other = [[OtherViewController alloc] init];
    [my.yqNavigationController pushYQViewController:other animated:YES];
}];

要推出的新视图只要继承YQViewController就可以了

导航栏左标题如果不设置自动显示上一层视图控制器标题,初始时显示“取消”

如图

gif

Latest podspec

{
    "name": "YQPresentController",
    "version": "0.0.2",
    "license": "MIT",
    "homepage": "https://github.com/yuyedaidao/YQPrensetViewController",
    "authors": {
        "yuyedaidao": "[email protected]"
    },
    "summary": "u5e26u5bfcu822au7684u5f39u51fau89c6u56feu63a7u5236u5668",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/yuyedaidao/YQPrensetViewController.git",
        "tag": "0.0.2"
    },
    "source_files": "YQPresentView/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "pop": [
            "~> 1.0.6"
        ]
    }
}

Pin It on Pinterest

Share This