다음은 어때요?
cell.nameLabel.numberOfLines = 1;
cell.nameLabel.minimumScaleFactor = 0.7;
cell.nameLabel.adjustsFontSizeToFitWidth = true;
업데이트 : 그 정확한 크기와 일치해야하지만 감사 이후
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
[self configureView];
}
- (void)didChangePreferredContentSize:(NSNotification *)notification
{
[self configureView];
}
- (void)configureView
{
self.textSizeLabel.text = [[UIApplication sharedApplication] preferredContentSizeCategory];
self.headlineLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];
}
는 내가 텍스트 스타일이 필요합니다. – user1079052
내 업데이트를 확인하십시오 – casillas
그래서 제목이 ios의 연락처 이름에 대한 텍스트 스타일이라고 확신합니까? – user1079052