I’m trying to use the text value from a text field as a float (to update a slider), but it’s apparently not as straight-forward as I thought.
self.speedSlider.value = self.numberOfSecs.text
That errors because an NSString is expected. I also can’t cast the text into a float, it seems.
Any help is appreciated.
You can extract value using floatValue method (if your string represents a valid number):