John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 987 forks source link

App crash because of Autolayout on iOS7 #415

Open saltwat5r opened 9 years ago

saltwat5r commented 9 years ago

Hello! My app crashes on iOS7, but on iOS 8 works fine. I have the following crash logs:

2015-05-04 13:31:54.524 MyApp[195:60b] *** Assertion failure in -[SWRevealView layoutSublayersOfLayer:], /SourceCache/UIKit/UIKit-2935.138/UIView.m:8794
2015-05-04 13:31:54.529 MyApp[195:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. SWRevealView's implementation of -layoutSubviews needs to call super.'

Does anyone know what is the reason of this and how can I fix it?

tdroenner commented 9 years ago

try to add [super layoutSubviews]; in the layoutSubviews Method of SWRevealCiewController.m

2015-05-04 13:37 GMT+02:00 saltwat5r notifications@github.com:

Hello! My app crashes on iOS7, but on iOS 8 works fine. I have the following crash logs:

2015-05-04 13:31:54.524 MyApp[195:60b] * Assertion failure in -[SWRevealView layoutSublayersOfLayer:], /SourceCache/UIKit/UIKit-2935.138/UIView.m:8794 2015-05-04 13:31:54.529 MyApp[195:60b] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. SWRevealView's implementation of -layoutSubviews needs to call super.'

— Reply to this email directly or view it on GitHub https://github.com/John-Lluch/SWRevealViewController/issues/415.