UITableViewCell's height different on iOS 8 (compared to iOS 7) - ios

Something is troubling me. I have a UITableView with cells that contain images. When using the iOS 7 simulator, the images gets constrained to the cell's height. When I tested it on the iOS 8 simulator, the cell expanded to the height of the image, and it is kinda buggy. Buggy because the height may change back to the height which appeared under iOS 7. Can someone kindly enlighten me please =D
My app is built using iOS 7 by the way.

Seems like all I can do for now is to use this:
self.tableView.rowHeight = 44.0;
Do let me know if any of you geniuses out there got something better =D

Related

UITableViewAutomaticDimension not working on Xcode 11 and iOS 13 with trait variations

I have view in xib that registered to tableView and calculate height through UITableViewAutomaticDimension. And all worked fine before update to Xcode 11 and iOS 13, now height small and incorrect.
What I noticed, if I remove all constraints trait variations it appears to work again. But if I add at least one trait variation for constraints(no matter horizontal or vertical) As on this image
Even with two checks, it breaks. But such variation working good, not breaks layout
.
Maybe bug in Xcode or something. Has anyone encountered this problem?

Issue with UIView on IPhone 7plus and 8plus

UIView on IPhone plus stretched and normal on regular sized iPhone. Constraints are all done in story board. I’m not sure what I’m doing wrong. Please help. Attached are imaged of the views : iPhone 7 Plus and iPhone 7.
I figured my issue was with my misunderstanding of auto layout, which is why I was not able to get my uiview to adjust properly across different screen sizes. This tutorial on youtube really broke down auto layout in such a simple way. Check it out (link below). I hope it helps someone else out there. thanks!
"Auto Layout Tutorial in Xcode with Swift for iOS 11 | iOS Development Tutorial"
Your problem is in the bottom constraint because of different screen heights you get different height for the view as the bottom constraint is static (528) , so to fix that remove that constraint and give it a static height or proportional to screen height
Also remove one of the top constraints as setting 1 is enough

iOS 7 / 8 Line Height

I can't find a way to solve this problem. I'm using 3 different UILabels, but the line height is different between iOS7 & iOS8 - is there a workaround? Does anyone have an idea how to solve it? See screenshot attached! I would like to have it as the iOS8 Version

UITableViewCell Constraint in iOS 8 not working in iOS7

I have used the Autolayout in iOS 7 and it works correctly without any problems but regarding to iOS8 it isn't worked at all .
Can i used the same UITableViewCell constraint for iOS7 and iOS 8 ?
I have experienced, that on iOS 8 some things just don't work as they did in iOS 7. For example, I had a Tableview with a few custom cells. Everything worked fine in the iOS 8 simulator, but on a iOS 7 device the tableview was always empty and the cellForRowAtIndexPath function was never called. It turned out to be a problem with Autolayout. Everything I had to do was to set correct constraints for the whole tableview, not just the cells. So my advice would be to check ALL constraints used in your view, not just the ones you think could be messed up.

UIDatePicker Cutting Off Text & Not Displaying Days

My app is suddenly unable to correctly display UIDatePickers. I'm using storyboards. The Datepickers are set to just display the date. They are cutting off the month, and also not even showing the days. There's a big space in the middle. I have tried cleaning the project, resetting the simulator, checking localization settings, and checking to see if dynamic type size was set. I'm using Xcode 5.1.1 but the same thing happens in the beta of Xcode 6. Any suggestions would be appreciated.
Ok, I figured it out. This happened as a result of trying to use UIAppearance on a tableView background color. This has nothing to do with tableViews on the face of it, but Apple must be using a tableView privately for the PickerViews. So, my attempt to set a UIAppearance via a category on a tableView background color seems to be doing something unexpected. Lesson learned. Don't try to use UIAppearance where they are not officially supported.
I had this exact same issue, and it was related to duplicate constraints in my storyboard. I'd been implementing iPhone 6 widths and inadvertently ended up with both width = 320 and width >= 320. Removing that width = 320 fixed it instantly.

Resources