Cartography
Cartography copied to clipboard
Crash on iOS 7.1
Hello, I have this code that works properly on iOS 8:
layout(self.loadingVC!.view, self.view, self.mainLogo) {loadingView, view, mainLogo in
loadingView.width == view.height.view.frame.size.width * 0.8
loadingView.height == view.height.view.frame.size.height/3
self.centerLoadingVIewConstr = loadingView.centerX == view.centerX + view.width.view.frame.width
loadingView.centerY == mainLogo.centerY
}
But when I execute this code in iOS 7.1 the app crash with the following message:
Assertion failure in -[UITableView layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2935.137/UIView.m:8794
2015-06-21 11:50:10.232 Save me[27458:607] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. UITableView's implementation of -layoutSubviews needs to call super.'
What is the problem? Thanks
iOS 7.1 is not officially supported by Cartography, but are you sure you're installing the constraints in the right place?