0
다음 배열에 다른 배열이 들어 있습니다.이 NSArray의 요소를 어떻게 정렬합니까?
NSArray *results = [[NSArray alloc] initWithObjects:
[NSArray arrayWithObjects:@"Nickname1", [NSNumber numberWithBool:YES], nil],
[NSArray arrayWithObjects:@"Nickname2", [NSNumber numberWithBool:NO], nil],
[NSArray arrayWithObjects:@"Nickname3", [NSNumber numberWithBool:YES], nil],
[NSArray arrayWithObjects:@"Nickname4", [NSNumber numberWithBool:YES], nil],
nil ];
어떻게이 배열의 요소를 두 번째 매개 변수 (부울 값)로 정렬합니까? NSSortDescriptor를 사용할 수 있습니까? (나는 전에 모든 YES를 원한다).
감사