【发布时间】:2021-05-03 18:25:19
【问题描述】:
这是我的代码:
import UIKit
class ExerciseCell: UICollectionViewCell {
@IBOutlet var numRepsTracker: UILabel!
@IBOutlet var name: UILabel!
@IBOutlet var setsLeft: UILabel!
@IBOutlet var downArrow: UIButton!
}
我想将我的 UIButton 的图像更改为我选择的图像,但我认为我不能通过 Interface Builder。有没有办法以编程方式编写代码?
【问题讨论】: