hal*_*lei 5 accessibility objective-c uitableview ios
I have an iOS application that has four tabs, one of which has a UITableView
with static cells. While the application is open, if the user goes to the Accessibility settings and toggles (whether it be from on to off or off to on) Large Text, and returns to the applciation, the static cells' text labels disappear. I tried reloading the table when UIContentSizeCategoryDidChangeNotification
was thrown, creating a category of UIApplication to disable Large Text in the manner below,
@implementation UIApplication (FontSize)
- (NSString *)preferredContentSizeCategory {
return UIContentSizeCategoryMedium;
}
@end
Run Code Online (Sandbox Code Playgroud)
but none of them worked.
另一个值得注意的行为是消失的标签属于设置更改之前加载的单元格。如果在设置更改之前未加载单元格,则其标签显示得很好。
归档时间: |
|
查看次数: |
276 次 |
最近记录: |