1
代码以绿色高亮显示的Xcode中(线程1:EXC_BAD_INSRTUCTION)致命错误 - 我知道原因,但不知道如何解决它
amountDueLabel.text = String(HomeViewController().getAllowanceDue())
功能getAllowanceDue()
func getAllowanceDue() -> Int{
var allowance = allowanceTextField.text.toInt()
return allowance!
}
非常感谢!
悠着点了我 - 我在iOS开发初学者
@richbrz:此解决方案适合您吗? – tek3
是的,我真的很感谢及时的答复。 – richbrz