【发布时间】:2013-01-22 20:05:24
【问题描述】:
我正在尝试使用 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];
知道探针可能是什么吗?
非常感谢!
【问题讨论】:
标签: ios xcode fonts uitextview