From 4b3cb22e419fa54e0b3cec06a02fb4baa0dc6a5d Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Tue, 18 Apr 2017 04:22:58 -0300 Subject: [PATCH] Fix broken Markdown headings --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 0084e08..3a66944 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ # HZURLManager 使用URL进行导航跳转(support URL to navigate) -####本项目交流群:32272635 -####欢迎有兴趣的有好的想法的同学参与到项目中来,如果有问题请大家加入群中留言或者issue我,或者发邮件给我zuohong_xie@163.com +#### 本项目交流群:32272635 +#### 欢迎有兴趣的有好的想法的同学参与到项目中来,如果有问题请大家加入群中留言或者issue我,或者发邮件给我zuohong_xie@163.com -##Preview## +## Preview ## ![preview](Screenshoot/urlmanager.gif) -##添加## +## 添加 ## ```ruby 下载文件直接将URLManager文件夹添加到项目中 ``` -##其它资源## +## 其它资源 ## * [简书论坛](http://www.jianshu.com/collection/ba017346481d) * [HZExtend,快速开发项目的框架,结合了MVC和MVVM的优点](https://github.com/GeniusBrother/HZExtend) * [HZMenuView,以UINavigationController为容器,且导航页面时不关闭的侧边栏](https://github.com/GeniusBrother/HZMenuView) -##一.URL配置## +## 一.URL配置 ## ```objective-c - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { @@ -31,8 +31,8 @@ //...... } ``` -##二.跳转## -####push +## 二.跳转 ## +#### push ```objective-c //push hz://urlItemB 到对应的控制器,并传入参数title=push [HZURLManager pushViewControllerWithString:@"hz://urlItemB?title=push" animated:YES]; @@ -40,7 +40,7 @@ //最后通过控制器的queryDic属性获取@{@“title”:@"push",@"key":@"value"},封装在UIViewController+HZURLManager.h [HZURLManager pushViewControllerWithString:@"hz://urlItemB?title=push"" queryDic:@{@"key":@"value"} animated:YES]; ``` -####present +#### present ```objective-c //push hz://urlItemB 到对应的控制器,并传入参数title=present [HZURLManager presentViewControllerWithString:@"hz://urlItemB?title=present" animated:YES completion:nil]; @@ -48,7 +48,7 @@ //最后通过控制器的queryDic属性获取@{@“title”:@"present",@"key":@"value"},封装在UIViewController+HZURLManager.h [HZURLManager presentViewControllerWithString:@"hz://urlItemB?title=push"" queryDic:@{@"key":@"value"} animated:YES completion:nil]; ``` -####Dissmiss +#### Dissmiss ```objective-c /** * 1.若当前控制器的容器为导航控制器,则pop @@ -57,24 +57,24 @@ [HZURLManager dismissCurrentAnimated:YES]; ``` -##三.其它## -####生成控制器 +## 三.其它 ## +#### 生成控制器 ```objective-c //根据URL创建控制器 UIViewController *rootViewCtrl = [UIViewController viewControllerWithString:@"hz://urlItemA"]; ``` -####获得当前控制器 +#### 获得当前控制器 ```objective-c UIViewController *currentViewCtrl = [HZURLNavigation currentViewController]; ``` -####获得当前的导航控制器 +#### 获得当前的导航控制器 ```objective-c UINavigationController *currentNavCtrl = [HZURLNavigation currentNavigationViewController]; ``` -####参数传递 +#### 参数传递 ```objective-c @interface UIViewController (HZURLManager) /**