Get UIButtons size strictly based on its text and font

suggest change

intrinsicContentSize is the button’s layout size for its current title, image, font, and insets. It is not the text measurement alone. The lines below read only the width.

Swift

button.intrinsicContentSize.width

Objective-C

button.intrinsicContentSize.width;

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents