The iOS accessibility feature that should be dead simple for developers but isn’t

Android just knows what your system font setting is. If you have trouble seeing smaller text, it will automatically scale your TextViews according to what you’ve told it to do in settings. iOS developers need to give their views a little extra love. Short, simple, and to the point here at 1am just for you. No digging or stackoverflow required.
Objective-C – How to scale labels according to iOS system settings:

UIFont *CELL_FONT = [UIFont systemFontOfSize:[UIFont preferredFontForTextStyle:UIFontTextStyleBody].pointSize];
if (CELL_FONT) { self.labelView.font = CELL_FONT; }

You may also like...

Leave a Reply