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
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)
}
}