How do I print the value of -> event.latitude = [[values objectAtIndex:0] floatValue]; ?
Below is some of my code:
@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];
How do I print out event.latitude?
I tried NSString *str = [NSString stringWithFormat:@"%@", event.latitude];
Thanks guys.