My brain is fried! I can’t think.
I’m using Core Data, and this is an iPhone app just so you know.
What i am trying to do is take the floatValues (like amount paid) from text fields and them to an array, add the values in the array and output the total to a label.
For some odd reason I honestly can’t think.I’m scattered brained at the moment. Please help!
Thanks in advance.
-T.
The NSArray in Objective C stores only Objects, so you will need to convert the float integral value into an NSNumber object using the following code and of course back.
However, you could easily create a float[] c-style array and iterate with a simple for loop over it.