Question

I'm trying to pass ProgressView a float from a calculation made in another class. I've tried passing it by converting it to a NSDecimalNumber but I can't get it back to a float again when it reaches the destination. There's got to be a better way than this.

Was it helpful?

Solution

myUIProgressView.value = someFloat; // where someFloat is just type float between 0.0..1.0

Should work. If you're using an NSNumber to hold the value, you can use [myNSNumber floatValue]; to get its float representation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top