My question is simple. Is it possible to set a minimum font size for UIButton , how can this be easily configured using UILabel ?
UIButton
UILabel
button.titleLabel.numberOfLines = 1; button.titleLabel.adjustsFontSizeToFitWidth = YES; button.titleLabel.lineBreakMode = NSLineBreakByClipping;
copied from Set minimum UIButton font size with field
Set Minimumfontsize is not available on iOS8, use minscalefactor instead.
Answer Anoop works like a charm. You can also do this in IB using custom runtime attributes:- select the button in IB- Add attribute- KeyPath: titleLabel.adjustsFontSizeToFitWidth- Type: Logic- Value: trueScreenshot from IB
Source: https://habr.com/ru/post/979399/More articles:How to handle spring version updates -security-oauth2? - javaThe algorithm for finding the largest empty rectangle among other polygons - algorithmThousands separator format number in Excel using Apache POI - javaApache poi - Thousand separator - javaFacebook Realtime API Updates for Page Submission - phpThe ripple effect does not occur when makeSceneTransitionAnimation is also used - androidSet minimum font size for UIButton with margin - iosRequires: repeated pictogram of visualization of population division - rAndroid accessories wireless configuration option? - androidSQL, last time using row_number () over the section - sqlAll Articles