【发布时间】:2014-09-16 09:33:05
【问题描述】:
我已经使用情节提要如下设置了一个出口:
@IBOutlet var completeButton: UIButton!
self.completeButton.titleLabel = UIFont (name: standardFont, size: 22.0)
给出错误不能赋值给这个表达式的结果。
简单的任务,但似乎无法迅速解决这个问题。
【问题讨论】:
-
UIButton的titleLabel属性是UILabel,而不是UIFont。我想你的意思是self.completeButton.titleLable.font = UIFont(...
标签: ios swift uibutton uilabel iboutlet