죄송합니다.이 질문은 멍청한 질문 일 수 있습니다. 그러나 CoreLocation과 관련하여이 문제가 해결되지 않았습니다.CLLocation이 0이 아니지만 인쇄하려고 시도합니다. EXC_BAD_ACCESS
이 사이트에서 권장하는 싱글 톤을 사용하여 currentLocation을 찾고 있는데 currentLocation 객체를 얻으면 nil이 아닌 검사에 true를 반환합니다. 그러나 설명을 인쇄하려고하면 EXC_BAD_ACCESS가 throw됩니다.
//WORKS Current location 8.6602e-290
NSLog(@"Current location %g",currLoc);
//DOESN'T WORK
NSLog(@"Current location %@",[currLoc description]);
//DOESN'T WORK - Is this causing the description to fail as well?
NSLog(@"Current location %g",currLoc.coordinate.latitude);
왜 처음에는 아무것도 볼 수 있습니까? BTW,이 3.1.2 시뮬레이터에서 실행되고 있습니다. 감사. %의 g는
NSLog(@"Current location %f",currLoc.coordinate.latitude);
혹시 이것을 해결 했습니까? 속성 위도 또는 경도에 액세스 할 때마다 이것도보고 있습니다 ... – scham