작동하지 게터 요청을 가져오고 내 sortDescriptors
설정 :이 메소드를 호출하지 디스크립터가NSManagedObject의 정의는 내가 그 재산의 반환 값에 대한 몇 가지 계산을 원하기 때문에 내가 속성 중 하나에 대한 게터를 무시하고 <code>NSManagedObject</code>이 NSSortDescriptor
// Initialize Fetch Request
NSFetchRequest *request = [[NSFetchRequest alloc] initWithEntityName:@"ZSSCDPerson"];
// Sorting
[request setSortDescriptors:@[[NSSortDescriptor sortDescriptorWithKey:@"distanceFromCurrentUserLocation" ascending:ascending]]];
정렬합니까?
이 정보가 유용할까요? http://stackoverflow.com/questions/17853496/nssortdescriptor-on-transient-attribute-for-nsfetchedresultscontroller – danh
SQLite 데이터베이스 저장소 유형? 아니요. 가져 오기 요청이 SQL로 변환되고 NSManagedObject 하위 클래스가 사용되지 않습니다. – Willeke
예, SQLite 데이터베이스 저장소 유형입니다. –