美文网首页
XCGLogger、键盘

XCGLogger、键盘

作者: Dove_Q | 来源:发表于2016-09-13 14:48 被阅读90次

    打印格式: XCGlogger

    log.setup(.Verbose, showLogIdentifier: false, showFunctionName: false, showThreadName: false, showLogLevel: false, showFileNames: true, showLineNumbers: true, showDate: false, writeToFile: nil, fileLogLevel: .Verbose)
           
    //测试XCGLogger + XcodeColors + 
            log.verbose("A verbose message, usually useful when working on a specific problem")
            log.debug("A debug message")
            log.info("An info message, probably useful to power users looking in console.app")
            log.warning("A warning message, may indicate a possible error")
            log.error("An error occurred, but it's recoverable, just info about what happened")
            log.severe("A severe error occurred, we are likely about to crash now")
    

    打印颜色: XcodeColors

     log.xcodeColorsEnabled = true
    

    在终端运行下面代码,就会弹出加载选项了

    defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.3.1
    

    打印的东西点击直接跳转到所在行数: KZLinkedConsole

    添加插件时,弹出加载选项时应该选择load bundles

    键盘: IQKeyboardManagerSwift

        //启用键盘
         OC: IQKeyboardManager.sharedManager.enable = true
    

    相关文章

      网友评论

          本文标题:XCGLogger、键盘

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