NSArray *myArray = [[NSArrayalloc] initWithObjects:@"String 1", |
@"String 3", |
NSMutableArray *myArray = [[NSMutableArrayalloc] initWithObjects:@"String 2", @"String 3", nil]; |
NSString *string1 = (NSString *)obj1;NSString *string2 = (NSString *)obj2;return [string1 compare:string2]; NSLog(@"myArray = %@", myArray); |