Latest 0.0.5
Homepage https://github.com/515783034/FreeController
License MIT
Platforms ios 8.0
Dependencies JLRoutes
Authors

解决多个组件之间通过URL scheme调用弹出控制器

通过Route实现多个无关联模块间控制器的跳转。

造轮子的原因在这里:多个pod之间的控制器跳转的可行性测试。

主要使用了JLRoutes 和protocol extension。

使用:

AppDelegate

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool   {
     SJUpdateScheme("SJJump://jump")
    SJAddPresentRoutes("jump")
    return true
}

需要跳转的控制器

@IBAction func doJump2RedVC(sender: UIButton)
{
    SJPresentViewController(self,moduleName: "podRoutes2/HHRedViewController",parameter: nil)
}
var SJType: UIViewController.Type
{
    return self.dynamicType
}

暂时实现了modal控制器,后续再继续优化。

Latest podspec

{
    "name": "FreeController",
    "version": "0.0.5",
    "summary": "u89e3u51b3u591au4e2au7ec4u4ef6u4e4bu95f4u901au8fc7URL schemeu8c03u7528u5f39u51fau63a7u5236u5668",
    "homepage": "https://github.com/515783034/FreeController",
    "license": "MIT",
    "authors": {
        "_Ashen": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/515783034/FreeController.git",
        "tag": "0.0.5"
    },
    "source_files": "FreeController/Resources",
    "dependencies": {
        "JLRoutes": []
    }
}

Pin It on Pinterest

Share This