UIButton을 선택하면 문제가 있습니다.UIButton 선택한 이미지가 작동하지 않습니다.
가radioButton.isSelected = true
의해 선택되어
let radioButton = UIButton(type: .system)
radioButton.frame = CGRect(x: 0, y: 0, width: 40, height: 40)
radioButton.setImage(UIImage(named: "buttonUnchecked"), for: .normal)
radioButton.setImage(UIImage(named: "buttonChecked"), for: .selected)
radioButton.setTitle("This is some text.", for: .normal)
radioButton.sizeToFit()
, 이미지가 도시되지 않는다 : 코드 스위프트 3이다.
의? –
보기에 radioButton을 추가 했습니까? – penatheboss