2017-09-26 3 views

Répondre

0

Que diriez-vous de suivre?

cell.nameLabel.numberOfLines = 1; 
cell.nameLabel.minimumScaleFactor = 0.7; 
cell.nameLabel.adjustsFontSizeToFitWidth = true; 

Mise à jour:

- (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]; 
} 
+0

J'ai besoin textstyle depuis que je dois correspondre à cette taille exacte, mais je vous remercie. – user1079052

+0

vérifier ma mise à jour – casillas

+0

de sorte que vous êtes sûr que le titre est le textstyle pour le nom de contact dans ios? – user1079052