iOS 7 / 8 Line Height - ios

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

Related

Xcode Storyboard broken since iOS 13 / Xcode 11

Since the update to Xcode 11 and iOS 13 the storyboard of my app is broken. This means that all rect elements in this file have wrong dimensions. Either height or width is a bit to high. Leading to the issue, that the UI is broken on the iPhone. When I try to fix them it works fine till I reopen the storyboard file the next time. Then Xcode prints 'indexing...' and after a couple of seconds all dimensions are wrong again.
I have added a screenshot showing the issue. Does anyone know how I can fix this? Thanks in advance!

UI elements in Xcode seem to be overlapping with each other. How to fix this?

So, I'm developing an app in Xcode and have used AutoLayout for this. The layout seems fine in an iPhone 8 but if I look at the same layout in iPhone SE, the elements seem to be overlapping with each other. How should I fix this? Please tell me if you need more details!
The problem is that if you want to support devices like iPhone 4/5 with your current long view , then you need to insert it inside a scrollview , as iPhone 8 height is longer it stretches freely , but for small devices , constraints will break and you'll get unexpected results

iOS 7 to iOS 8 scrollView with custom icons not working

I've worked once on an iOS7 app with a lower Horizontal scrollView with custom buttons that let me choose some options. That worked fine, but now while we are giving iOS 8 support, the scroll view appears blank.
iOS 7:
http://postimg.org/image/djv26la4f/
iOS 8:
http://postimg.org/image/4asvwh18f/
I've been trying some possible fixings but I'm stuck in this. Everything is being done programatically, no autolayout.
Do you have any idea of which could be the problem?
Thanks in advance.
I finally fixed it. It was a problem with the frames as hasan83 said.
After hours of debugging I noticed that a group of frames was with wrong frames despite of using the same code. I fixed it by making distiction between iOS versions.
Thank you for your help!

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

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

iOS - iPad layout top/botton spacing doesn't seem to do what I tell it to do

I am creating this screen:
But when I run things, I get it to look like this.
If you notice, the space below/above some elements looks off. Would anyone know why thing happens and how to fix this?
Thank you!
If you're asking about why the buttons look the way they do, that is because your storyboard is set to be viewed as "iOS 6.1 and Earlier", so you're seeing the interface elements as the appear under iOS 6.1 -. Then when you run the application on your iOS 7 simulator, these same elements appear as they do in iOS 7 +, which you can see is quite different.
Then as far as the alignment problems go, I suggest you read through the 80 iPad storyboard related warnings that Xcode is generating and fix your constraints.

Resources