0
-> event.latitude = [[값 objectAtIndex : 0] floatValue]; 값을 인쇄하려면 어떻게해야합니까? ?개체 변수를 인쇄하는 방법은 무엇입니까?
@interface SeismicEvent : NSObject <MKAnnotation>{
float latitude;
float longitude;
**This is an object
SeismicEvent *event;
** This reads in a float
event.latitude = [[values objectAtIndex:0] floatValue];
가 어떻게 event.latitude을 인쇄하는 방법 : 아래
내 코드의 일부인가?
나는있는 NSString에게*str = [NSString stringWithFormat:@"%@", event.latitude];
고마워 했어요. 당신은 단지 그것을 밖으로 인쇄하려는 경우
당신은 목적-C 태그를 추가해야 이 질문에. –
@Jesse Dhillon - 평판이 500이 넘기 때문에 태그를 편집 할 수 있습니다. –
새내기 질문에 대해 죄송합니다. – Morry