-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble while rotating device #14
Comments
Glad to hear it's been helpful. As far as the issue you're seeing with iOS 8, here are the first two things I would check:
Another recommendation I have is to consider moving away from observing the rotation notifications, and move towards making decisions using the new Adaptivity APIs in iOS 8 (assuming your deployment target is set to iOS 8 only). Instead of having the cells themselves try to handle rotations and remove constraints, I would have the table view controller implement the new Then in the resulting calls to Good luck getting things working! |
Thank you for your comments As far as the two questions you pointed out I am sure that the callbacks are being sent and the setNeedsUpdateConstraints is called on the tableviewcell Since I am targeting iOS 8 only I am going to look at your suggestion with the viewWillTransitionToSize:withTransitionCoordinator: methods, best regards |
Hello mate I just realize what the problem was. In iOS 7 the cell's contentView was automatically pinned to the cell and apparently in iOS 8 you have to add constraints so that the contentView has the same size and origins as the cell itself, otherwise it has some issues specially when the contentView grows or changes Hope it helps you |
Hello mate. I have been using your solution to create auto-layout UITableViews and UITableViewCell basically since you released it for iOS 7, it is great
Back then I made a few modifications to allow different constraints to be placed for portrait and landscape orientations, basically it was done by adding an observer for orientation changes to the table view cell that calls "setNeedsUpdateConstraints" and at the "updateConstraints" method I remove and add the constraints needed to change the layout on the cells.
It was working ok on iOS 7 but now on iOS 8 it doesn't seem to work correctly, I already updated it to use UITableViewAutomaticDimension with no luck. Do you have any ideas why this could be happening?
The text was updated successfully, but these errors were encountered: