0
私はDataSourceを返すSOAPサービスのクエリを持っています。そのDataSourceには行ごとに2つの列があります。Swift 2.3を使用してUIPickerView内でこれらの列をどうやって持ってくることができますか?NSMutableArrayをUIPickerViewに渡すにはどうすればいいですか?
私は、データソースを渡すために、このコードを使用しています:
func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
print(DataSource[row])
if component == 0 {
return DataSource[row][IdPessoa] as? String
} else {
return DataSource[row][Empresa] as? String
}
}
あなたはどうやってそれをしようとしていますか? – Adarkas2302