iOS 8 Label autoshrink - ios8

It seems to me, that in iOS 8 auto shrink isn't working. I try to set minimum font scale / minimum font size, but the text after loading remains static. When I run an app on iOS 7 everything is OK.

With plain text i cannot confirm that problem in iOS 8 but with attributed text i saw the same issue. A workaround was to set the font name and size explicitly programmatically for the label text (not only in storyboard attributes inspector). That way the attributed text size changed accordingly.

Related

How to change the picker items font size in Xamarin IOS?

In Xamarin forms, for IOS if the picker item has lengthy text, that text is getting truncated. How to change the xamarin ios picker items font size using customrenderer or how to make the text fit without getting truncated?.
There is another alternative solution as well where you can change the alignment of Picker Item(Default is Center). You can make it left.
For adjusting Text and Style there are plenty of renderer solutions on Stack Overlfow.
For your ref, attaching one of those solutions.
Solution.

How to prevent android and ios font settings to bold / larger font size in xamarin?

When changing the font to bold in the device some of the labels are overlapping and the text will be bold. also, when we change font size it also affects the Ui.

How to set font size to 16 in Xcode?

I know how to change font size in Xcode (REF) and I am using Xcode 8.3.2. There are options like 11/12/13/14/18... in the font window, but without 16. How can I make it?
Edit:
I tried to type 16 in the size text field directly, but won't help.
As Larme mentioned, the font panel has a text field for you to enter the font size. If entering the font size doesn't change the font size, there's a slider in the font panel. Use the slider to change the font size to sizes that don't appear in the font panel list, such as 15 and 16 points.

How to set automatically font size change of UIButton regardless of the orientation of the device?

I want to have my buttons changes font size, when user change orientation.
Is it possible to do it in storyboard?
Thanks.
Unless you are targeting an old iOS version, don't use the word "orientation". They are called "size classes" now. You should work with them instead of orientations.
In the storyboard's property inspector, there is a little "+" next to the font property:
If you click that, you can add a new value for font when it is changed to a specific size class:
Here I made the font size bigger if it is horizontally regular:
IMO, you shouldn't change the font size depending on the size class and/or orientation. There might be something wrong with your design...

Today Extension: how to display long text?

I don't know whether I'm doing something wrong or if it's not possible: I'd like to display a longer text, but the height seems to be limited to 568 pixels (Maximum height of iOS 8 Today Extension?). I'm using a UITextView, so I would expect it to scroll, but that's not possible either.
Isn't there any way to display the full text?
Displaying such large text on a Notification Center widget, especially in iPhone 4S, 5 or 6, where space is limited, is a bad idea.
Instead, show a preview of the text, indicate that there is more text, and add a button to open the full app to read the rest of it.

Resources