본문 바로가기 메뉴 바로가기

썩소천사

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

썩소천사

검색하기 폼
  • 전체보기 (781)
    • iOS (112)
      • 자료정리 (63)
      • 에라고만... (33)
      • 개발주저리 (5)
      • Mac 활용 (11)
    • Android (50)
      • 자료정리 (32)
      • MAC에서 시작하기 (18)
    • JSP (1)
      • MAC에서 시작하기 (1)
    • 푸념 끄적끄적 (73)
      • 오늘 하늘은 (20)
      • 일상 (22)
      • 스쳐가는생각 (30)
    • 나만의 여가 (533)
      • 나주&혁신 맛집 (67)
      • 광주 맛집 (130)
      • 도서 (103)
      • 영화 (62)
      • 먹거리 리뷰 (41)
      • 생활 잡지식 (28)
      • 작은 화원 (21)
      • 제품 리뷰 (27)
      • 여행~ (20)
      • 나님의 붕붕이 (16)
      • 요뤼라고 하기엔 뭔가... (5)
      • 블로그 관리하기 (4)
      • 주식 매매 일지 (0)
      • 티스토리 초대 (9)
  • 방명록

NSMutableArray (2)
[iOS] mutating method sent to immutable object

추가 데이터를 계속해서 받는 배열을 property로 선언 후 객체를 추가 할 경우 오류 발생. ㅁ. 에러 형태 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[__NSCFArray insertObject:atIndex:]: mutating method sent to immutable object' *** First throw call stack: ㅁ. 소스 코드// 테이블뷰에 사용할 배열 선언@property (nonatomic, strong) NSMutableArray *listDataAry;// 초기화self.listDataAry = [[NSMutableArray alloc] ini..

iOS/에라고만... 2015. 8. 27. 12:01
[iPhone]NSMutableArray, NSArray

//배열 순서 뒤집기 [[dataAry reverseObjectEnumerator] allObjects]; //여러 조건으로 순서 정렬하기 NSMutableArray *dataAry = [[NSMutableArray alloc] init]; NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"number" ascending:YES]; NSSortDescriptor *sortDescriptor2 = [[NSSortDescriptor alloc] initWithKey:@"number2" ascending:YES]; [dataAry sortUsingDescriptors:[NSArray arrayWithObject:sortDesc..

iOS/자료정리 2011. 6. 10. 14:18
이전 1 다음
이전 다음
반응형

Blog is powered by Tistory / Designed by Tistory

티스토리툴바