美文网首页
一个好用的插件DoraemonKit

一个好用的插件DoraemonKit

作者: 大菠萝_b08d | 来源:发表于2020-05-07 18:04 被阅读0次

做项目时发现一个非常有趣好用的插件DoraemonKit 源自于滴滴开发项目团队

具体使用 pod方式

pod 'DoraemonKit/Core', '~> 2.0.0', :configurations => ['Debug'] #必选

有很多别的插件可用,自己可以去github上看

在此做个记录

具体使用方法很简单

@UIApplicationMain

class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        UIViewController.swizzlingMethodOnce()

        window = UIWindow(frame: UIScreen.main.bounds)

        window?.backgroundColor = .white

        window?.makeKeyAndVisible()

        window?.rootViewController = UINavigationController(rootViewController: MainViewController())

        DoraemonManager.shareInstance().install()

        // Override point for customization after application launch.

        return true

    }

}

做个记录 方便后面自己remark

相关文章

网友评论

      本文标题:一个好用的插件DoraemonKit

      本文链接:https://www.haomeiwen.com/subject/dpxzghtx.html