【发布时间】:2016-10-13 07:56:20
【问题描述】:
我在集合单元格中有文本。 如何更改 NSString 文本的大小?我尝试过类似
cell.author.text.font = [UIFont systemFontOfSize:12.0];
但这是不允许的,它说 在“NSString”类型的对象上找不到属性“字体”
CollectionCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:identifier forIndexPath:indexPath];
cell.author.text = detailData.author;
【问题讨论】:
-
cell.author.font = [UIFont systemFontOfSize:12.0];
标签: ios objective-c nsstring uicollectionviewcell