Here is an example of the fundamental size of a control string.
Declare the maximum string length:
int max = 5;
Suppose you have a list of strings in an array:
NSArray *strs = [NSArray arrayWithObjects:@"My Little Puppy", @"Yorkerz", nil];
Cycle operation:
[strs enumerateObjectsUsingBlock:^(NSString *str, NSUInteger idx, BOOL *stop) { if (str.length > max)
Results:
"My Li" and "Yorke"
I hope I understood your question correctly.
source share