UILabel in iPhone 4S versus iPhone 3GS

221 views Asked by At

I have been testing my app on the Simulator and an iPhone 3GS, and have most of the kinks worked out (I think!). I recently got to try it on an iPhone 4S, and there are some strange display issues with UILabel. These are generic UILabel, with System 17 font in all cases. I have used a storyboard to insert the UILabel. I'm running iOS6 on the iPhone 4, and iOS6.0.1 on the iPhone 3. On the iPhone 4, the text is truncated, and "..." is added. Anyone know why? And how to fix this?

Here's what it looks like on the the Simulator (looks the same on the iPhone 3):
(source: WhatDidILike.com)
.

Here's what it looks like on the iPhone 4:
(source: WhatDidILike.com)
.

1

There are 1 answers

5
Michael Dautermann On

I wonder if this is the new AutoLayout feature fighting against you?

In any event, make your UILabel's wider in your storyboard, and/or add a "Minimum Font Size" autoshrink attribute for the text in the UILabel attribute inspector (which looks like this):

Minimum Font Size

Appears to be a new thing with iOS 6...