美文网首页知识点
iOS屏蔽控制台约束的输出

iOS屏蔽控制台约束的输出

作者: 紫荆逸 | 来源:发表于2018-01-19 14:27 被阅读39次

可以写在AppDelegate文件里,

UserDefaults.standard.setValue(false, forKey:"_UIConstraintBasedLayoutLogUnsatisfiable")

示例:

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        //MARK:--屏蔽控制台autolayout约束内容的输出
        UserDefaults.standard.setValue(false, forKey: "_UIConstraintBasedLayoutLogUnsatisfiable")       
 
        return true
    }

相关文章

网友评论

    本文标题:iOS屏蔽控制台约束的输出

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