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
ios objective-c accessibility uitableview


source to share


No one has answered this question yet

Check out similar questions:

25
Fast dynamic table cell height
five
How do I get a custom UITableViewCell created in IB to load into a UITableView?
3
IOS 8 dynamic type with static cell TableView - main and subtitle
2
How do I add a custom cell at the bottom of the UITableView?
2
Objective C - iOS, iterating through UILabels on off-screen static table cells
1
UIImage disappears when trying to set UILabel text
0
UITextView in UITableViewCell skips last row in read only mode
0
Automating a UITableView inside a custom UIView for a section
0
Dynamic text in a static table view doesn't display correctly until the tableview deletes the reusable cell
0
Custom cells don't fill in correct data when screen is off



All Articles
Loading...
X
Show
Funny
Dev
Pics