Внутри настроек->общие->размер текста: после изменения размера текста мне пришлось выйти из собственного приложения, чтобы применить размеры
[UIFont preferredFontForTextStyle:..]
Есть ли делегат или уведомление для уведомления моего приложения о повторном применении новых размеров?
Обновление. Я попробовал следующее, но интересно, размер шрифта будет применен после того, как я сделаю BG и запущу приложение ДВАЖДЫ.
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(fromBg:) name:UIApplicationDidBecomeActiveNotification object:nil];
}
-(void) fromBg:(NSNotification *)noti{
self.headline1.font = [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];
self.subHeadline.font = [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
self.body.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
self.footnote.font = [UIFont preferredFontForTextStyle:UIFontTextStyleFootnote];
self.caption1.font = [UIFont preferredFontForTextStyle:UIFontTextStyleCaption1];
self.caption2.font = [UIFont preferredFontForTextStyle:UIFontTextStyleCaption2];
// [self.view layoutIfNeeded];
}
Подробнее здесь: https://stackoverflow.com/questions/189 ... s-settings