swift 关闭打印print

import Foundation

 

class DebugLogTool: NSObject {

    private static let isDebug = true

    

    /**

     *  自定义log打印

     */

    static func debugLog(item: Any){

        if isDebug {

            print(item)

        }

    }

}

posted @ 2016-08-10 14:47  ReHo  阅读(712)  评论(1编辑  收藏  举报