I am trying to figure out how to get the number of objects in an NSMutableArray for purposes of populating a UITableView. I was able to make an NSArray with some dummy data to test that everything in the tableview is hooked up correctly, and that works fine. So my issue is getting the length from the array. For the dummy data I'm able to do this easily.
However when I change my code to this:
things start getting wonky and throws up an error.
'Total' is the name of the class I use to keep a running total of the floats in the array.
I'm sorry if this isn't very clear, I only have about 3 months of experience with doing this stuff in my spare time. If something doesn't make sense I can try to clarify.
Code:
return [self.testArray count];
Code:
return [self.foodCart count];
No visible @interface for 'Total' declares the selector 'count'
'Total' is the name of the class I use to keep a running total of the floats in the array.
I'm sorry if this isn't very clear, I only have about 3 months of experience with doing this stuff in my spare time. If something doesn't make sense I can try to clarify.
Last edited: