我正在尝试使用 textview.font = [UIFont fontWithName:etc] 更改 UITextView 的字体;但由于某种原因,它什么也没做,它总是显示相同的字体和大小。这是代码:
UITextView *descriptionTextView = [[UITextView alloc] initWithFrame:rect];
descriptionTextView.editable = NO;
descriptionTextView.scrollEnabled = NO;
descriptionTextView.text = description;
titleTextView.font = [UIFont fontWithName:@"Veranda" size:17.0]; //<- this line isn't working
[cell.contentView addSubview:descriptionTextView];
知道问题可能是什么吗?
非常感谢!