adjustsFontSizeToFitWidth in utilities pane in Xcode storyboard
Asked Answered
W

3

7

Someone knows where to set adjustsFontSizeToFitWidth in the utilities (right) pane when editing the storyboard?

Thanks, Ox

Wringer answered 7/10, 2014 at 14:11 Comment(3)
Have you solved this issue? I'm in the same trouble right now...Beyer
Yep, see Undo's answer below.Wringer
If you solved the issue please consider accepting the answer by clicking on the checkmark.Beyer
S
12

Select your label in the storyboard, and set the drop down to Minimum Font Size. Then in the text field, enter the lowest size your label should drop to to try to fit the contents onscreen:

enter image description here

Sydney answered 7/10, 2014 at 14:15 Comment(0)
P
1

Go to attributes inspector on your TextField and under minimum font size drop down menu there is a checkbox Adjust to Fit.

Update added picture.

UITextField attributes inspector

Peignoir answered 7/10, 2014 at 14:17 Comment(3)
I can't see it, could you please post a picture? BTW, I'm on Xcode 5.Wringer
Cool, what about UILabel? looks like it appears only in text view.Wringer
see Undo's answer bellow for UILabelPeignoir
T
1

enter image description here

You can adjust Font Size to fit width

titleLabel.adjustsFontSizeToFitWidth

Tocharian answered 5/10, 2023 at 11:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.