tags:

views:

25

answers:

1

Hey there,

Just have a quick question, event.header is type String , I need to set the object but I'm unsure what I have to set it to? it's set to String ?

I'm getting this error "object can not be set"

event.header = [values objectAtIndex:0];
event.longitude = [[values objectAtIndex:2] floatValue];

Thanks

A: 

You have to much brackets in your first line. Try it like this:

event.header = [values objectAtIndex:0];
Sandro Meier
Yeah sorry that was a typo in my question , event.header = [values objectAtIndex:0]; doesn't work
Morry