16
위도 (NSNumber), 경도 (NSNumber) 및 시간 (NSDate)의 세 변수가있는 좌표 개체가 내 시뮬레이터에서 프로그램을 확인하기 위해 좌표 코드를 사용하여 folowing 코드를[NSNumber numberWithDouble :]
내가 coordinate.latitude 및 coordinate.longitude NSLog 때[coordinate setLatitude:[NSNumber numberWithDouble:23.234223]];
[coordinate setLongitude:[NSNumber numberWithDouble:73.234323]];
그러나, 그것은 문제가 될 수있는 0.00000
NSLog(@"cordlat : %f",coordinate.latitude);
NSLog(@"cordlong : %f",coordinate.longitude);
을 diplays ???
: 다음 중 하나를 수행 할 수 있습니다? – Vladimir
coordinate는 3 개의 vars 위도, 경도 및 시간을 가진 Coordinate 클래스의 객체이며,이 객체는 coredata와 함께 사용되므로 NSNumber 유형 – sujith1406
질문 제목과 질문 설명이 일치하지 않는 것으로 위도와 경도를 정의했습니다. :에스 – Steven