UILabel in static cells disappears after rich text is enabled with accessibility

I have an iOS app that has four tabs, one of which has UITableView

static cells. Although the app is open, if the user navigates to accessibility settings and toggles (whether it is on in off or off state) large text and returns to the app, the static cell text labels disappear. I tried to reload the table when it was dropped UIContentSizeCategoryDidChangeNotification

by creating a UIApplication category to disable Large text below,

@implementation UIApplication (FontSize)

- (NSString *)preferredContentSizeCategory {
    return UIContentSizeCategoryMedium;
}

@end

      

but none of them worked.

Another note worth noting is that fading labels belong to cells that were loaded before the settings were changed. If the cell was not loaded before the settings were changed, its label is displayed just fine.

+3


source to share





All Articles