开发者

Object can not be set ERROR

开发者 https://www.devze.com 2023-01-07 08:56 出处:网络
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 ?

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 ge开发者_开发百科tting this error "object can not be set"

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

Thanks


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

event.header = [values objectAtIndex:0];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号