Open AndrewHartAR opened 9 years ago
I've now tried this:
self.fahrenheitRow.title = TemperatureScale.Fahrenheit.string()
self.celsiusRow.title = TemperatureScale.Celsius.string()
self.settingsForm.delegate = self
let section = XLFormSectionDescriptor()
section.title = "Temperature Scale"
self.fahrenheitRow.value = self.temperatureScale == .Fahrenheit
section.addFormRow(self.fahrenheitRow)
self.celsiusRow.value = self.temperature
self.settingsForm.addFormSection(section)
And I have the method:
func formRowDescriptorValueHasChanged(formRow: XLFormRowDescriptor!, oldValue: AnyObject!, newValue: AnyObject!) {
println("form row descriptor value has changed")
}
The problem is that now this delegate method simply isn't being called when I highlight one of these rows.
I'm not sure if this is a feature already or not.
I'd like to offer the user a number of choices, for example:
Temperature Scale: Celsius Fahrenheit
With those as separate cells instead of a segmented control.
Because it's the only option in my form, I'd like them to be able to do this inline, without going to another page.
Perhaps there's a selector or something where I can be notified of a change to a cell?