Unable to simultaneously satisfy constraints

后端 未结 6 1327
暖寄归人
暖寄归人 2020-12-28 18:22

Actually integrated camera application using xib, in that I placed uiview on a view, after that I put imageview, again view on imageview for cropping. then run the project

6条回答
  •  别那么骄傲
    2020-12-28 18:31

    I had the same problem, after hours of searching, it turned out the problem was because in-call or hotspot status bar was toggled, (hotspot is on, in a phone call), to fix the problem, in appdelegate I added:

        func application(application: UIApplication, willChangeStatusBarFrame newStatusBarFrame: CGRect) {
        let windows = UIApplication.sharedApplication().windows
    
        for window in windows {
            window.removeConstraints(window.constraints)
        }
    }
    

提交回复
热议问题