iOS屏蔽控制台约束的输出
2018-01-19 本文已影响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
}