Currently, i’m trying to implement a method that stores two UITextField values (after a user has typed it in) in two seperate arrays. However, when I ran the program with the console, the NSLog of each array returned null values (didn’t insert the floats).
I tried switching to int, but it says there are incompatibility issues. Anyone know where I’m going wrong?
-(IBAction)logSet:(id)sender {
[repsUsed insertObject:[reps.text floatValue] atIndex:0];
[weightUsed insertObject:[weight.text floatValue] atIndex:0];
NSLog(@"%@", repsUsed);
NSLog(@"%@", weightUsed);
}
NSMutable can only add objects and float, int are not object type for inserting float values make it a object by