NSDate 오류

스코어 보드를 만드는 중 오류 발생.

[[NSDate date] descriptionWithCalendarFormat:@"MM/dd/yy hh:mm a"];


아무런 문제 없어 보이는 이 코드가 되지심


warning: 'NSDate' may not respond to '-descriptionWithCalendarFormat:'


웹서핑을 해보니 iphone 에서는 안된다고 함. 대신 이렇게 해야함



NSDateFormatter* dateFormat = [[NSDateFormatter alloc] init];

[dateFormat setDateFormat:@"MM/dd/yy hh:mm a"];

message = [dateFormat stringFromDate:[NSDate date]];

[dateFormat release];






by 꾸에엑 | 2009/03/27 11:17 | 게임 개발 | 트랙백 | 덧글(1)

트랙백 주소 : http://kueec.egloos.com/tb/4267183
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Commented by 쌍부라 at 2009/03/27 21:30
걍 포매터를 클래스 분리해놨넹

:         :

:

비공개 덧글

◀ 이전 페이지다음 페이지 ▶