我想通過他與到達的消息被放在迅速正確的API文本‘可選’這是我的代碼:文本字段接收可選(「值」),而不是‘價值’
let accountValues:NSArray = account!.accountNumber.componentsSeparatedByCharactersInSet(NSCharacterSet(charactersInString: "-"))
self.accountTextField.text = accountValues.objectAtIndex(0) as? String
self.accountDigitTextField.text = accountValues.objectAtIndex(1) as? String
所以是用雙引號的問題嗎? –
雙引號?我相信他們不會干涉! –