jondanao / TheSidebarController

A container view controller that implements different popular sidebar view controllers like Facebook, Airbnb, Flipboard, etc.
Other
360 stars 52 forks source link

Problems with modal views #5

Closed jberlana closed 10 years ago

jberlana commented 10 years ago

When presenting a modal view controller and dismiss all the screen is messed up. After dismiss the modal view controller the app is 100% broken.

¿Any idea of what is happening? The same problem appears using modal view controllers in the examples.

jberlana commented 10 years ago

Seems like the problem is caused because of the Autolayout.

Removing this lines (98 & 99 on TheSideBarController.m) solves the problem self.view.translatesAutoresizingMaskIntoConstraints = NO; self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

jondanao commented 10 years ago

@jberlana Thanks will look into this. Good catch by the way.

jonahgabriel commented 10 years ago

I have submitted a pull request that fixes the issue.

jondanao commented 10 years ago

Pull request merged