NSArray의 Value들을 역순으로 정렬할때 다음과 같이 하면된다.
[[array reverseObjectEnumerator] allObjects]
reverseObjectEnumerator 라는 메소드를 통해서 역순이 된 array의 NSEnumerator 객체를 얻게 되고
여기서 부터 allObjects를 통해서 해당 array를 얻게 된다.
반응형
'2013 이전 > iOS개발' 카테고리의 다른 글
[iOS 개발] UITableView 기본 delegate, datasource (0) | 2017.02.25 |
---|---|
[iOS 개발] iCloud app 연동 설정 (0) | 2017.02.25 |
[iPhone 개발] string 이 URL 형식인지 확인하기 (0) | 2017.02.25 |
[iPhone 개발] AudioSessionAddPropertyListener 의 해제 (0) | 2017.02.25 |
[iPhone 개발] sqlite query 따옴표 처리 (0) | 2017.02.25 |