做项目时发现一个非常有趣好用的插件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
网友评论