GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pozi119/VVManager: 页面管理器.

BranchesTags
Open more actions menu

Latest commit

 

History

85 Commits
85 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
VVManager
VVManager
 
 
.gitignore
.gitignore
 
 
.swift-version
.swift-version
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
VVManager.podspec
VVManager.podspec
 
 
_Pods.xcodeproj
_Pods.xcodeproj
 
 

Repository files navigation

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, [email protected]

License

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

About

页面管理器.

Resources

Readme
MIT license
Activity

Stars

80 stars

Watchers

6 watching

Forks

22 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.