1 Star 0 Fork 0

ValoLee / VVManager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

VVManager(页面管理器) 2.1.0

CI Status Version License Platform

版本更新

  • 打印调试信息改为[VVManager setVerbose:YES].
  • 链式编程设置属性前缀改为vv_.
  • 添加两个通知:VVManagerViewDidAppearNotification,VVManagerViewDidDisappearNotification

功能说明

  • 跳转指定页面,只需要知道viewController的Class名,如果有storyboard,则需要指定storyboard名.
  • 支持URLScheme跳转指定页面.

安装

  • cocoapods导入:
pod 'VVManager'
  • 手动导入: 将VOVCManager文件夹所有源码拽入项目

使用

  • 在需要的文件中导入头文件,通常在pch文件中导入,使用+load的方式初始化单例.
#import "VVManager.h"
  • 需要使用URLScheme跳转,请在 (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 运行阶段加入以下代码
    // 在Safari mobile或者其他支持URLScheme的浏览器中打开 app://favorite 即可打开该页面
    [VVManager registerURLPath:@"favorite" forHop:[VVHop hopWithMethod:VVHop_Pop aStoryboard:@"Main" aController:@"VVFavoriteMainController"]];
  • 使用storyboard,请设置每个ViewController的Storyboard ID和对应的Class名一致.

  • 其他使用请参考注释.

  • VOVCFavoriteMainController中有使用代码进行跳转的示例.

    [VVManager showPageWithHop:[VVHop makeHop:^(VVHop *hop) {
        hop.vv_method(VVHop_Push)
        .vv_aStoryboard(@"Main")
        .vv_aController(@"VVRecentsDetailController")
        .vv_parameters(@{@"recentText": @"From VVFavoriteMainController"});
    }]];
  • 也可以不使用链式编程
    [VVManager showPageWithHop:[VVHop hopWithMethod:VVHop_Push aStoryboard:@"Second" aController:@"VVTableViewController"]];

Author

pozi119, pozi119@163.com

License

VVManager is available under the MIT license. See the LICENSE file for more info.

Copyright (c) 2017 pozi119 <pozi119@163.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

页面管理器. 展开 收起
Objective-C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Objective-C
1
https://gitee.com/valox/VVManager.git
git@gitee.com:valox/VVManager.git
valox
VVManager
VVManager
master

搜索帮助