I had numerous errors about how I was trying to make integers from pointers without casting them. I was able to fix all of them except this one, for which the error was phrased slightly differently.
I had this initially:
but it was generating an error (and letting your errors pile up is a poor choice, it'll be much easier to find the one that crashes your program if you don't let them.)
So I changed it to this:
But both of them insisted that
warning: passing argument 1 of 'replaceObjectAtIndex:withObject:' makes integer from pointer without a cast
classes is an NSMutableArray
renamingClass is an NSUInteger
addClassName is a UITextField
addClassName.text is an NSString
I had this initially:
Code:
[classes replaceObjectAtIndex: renamingClass withObject: addClassName.text];
but it was generating an error (and letting your errors pile up is a poor choice, it'll be much easier to find the one that crashes your program if you don't let them.)
So I changed it to this:
Code:
[classes replaceObjectAtIndex: (NSUInteger *) renamingClass withObject: addClassName.text];
But both of them insisted that
warning: passing argument 1 of 'replaceObjectAtIndex:withObject:' makes integer from pointer without a cast
classes is an NSMutableArray
renamingClass is an NSUInteger
addClassName is a UITextField
addClassName.text is an NSString