0
如何打印 - > event.latitude = [[values 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];
谢谢你们。
您应该添加Objective-C的标签对这个问题。 – 2010-07-16 00:42:12
@Jesse Dhillon - 你可以编辑他的标签(因为你的声望超过500)。 – 2010-07-16 00:53:47
谢谢你们,对于新手问题感到抱歉 – Morry 2010-07-16 01:32:26