I need to display the count of a array in a label. To do that I need to pass the array.count to an NSString. This is what I have tried:
if (myArray.count > 0 ) {
NSString *newString = @"Array count = %@", myArray.count;
[_myLabel setText:newString];
}
It didn't work. I also tried to replace the NSString with an NSMutableString, no results there. So my question is, how do i do that?
I also tried to replace the %@, for %lu, and then add the (unsigned long) before the array count (just like I do to display the array count on a NSlog), but this did not work either.