Xcode Simulator is not showing changed text font size

Hello, I have a probelm with the Xcode Simulator not showing desired changes with text font at specific configuration.

When the configuration of a UIButton text was set as below on the editor, althought the changes were viewable on storyboard, the simulator didn't look the same.


Type:Custom

Style: Plain

Title:Attributed


Is there a logical reason why this happens?

Also, the documentation says "Plain" indicate the text is a plain String object whilst "Attributed" indicate the string has become a instance of NSAttributedString. How is it possible to set the style and the title different like Style: Plain/Title: Attributed and vise versa? Maybe this was the reason the simulator didn't work alright?

Thank you in advance

Replies

Hey @mugudeli I hope you still need the answer to the question.

Please refer to this link.

The main change you need to do is,

Change Style: Plain to Style: Default.

This will solve the issue you are facing.