2009년 03월 27일
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)





☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]