I'm trying to use this code to set my text's font to Helvetica Neue Thin
[UIFont fontWithName:@"Helvetica Neue Thin" size:14.0f];
The text has the given font but changing the size in the code has no effect on the text visible in the app.
EDIT-
Full block of code
nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(190, 5, screenWidth-210, 15)];
nameLabel.font = [UIFont fontWithName:@"Helvetica Neue Thin" size:6.0f];
nameLabel.textColor = [UIColor grayColor];
nameLabel.textAlignment = NSTextAlignmentRight;
[self.contentView addSubview:nameLabel];
Any reasons?
[UIFont fontWithName:@"HelveticaNeue-Thin" size:14.0];
您的字体名称不正确。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.