In my app, when I press a button the method called for that button first assigns my textfield texts directly to NSArray
object like:
val = [[NS
All objects involved in array creation using initWithObjects
should be actual objects. There is no enough code in your question to know if lat
and longt
are objects too. Are they?
If they aren't, wrap them with [NSNumber numberWithFloa:<# the float #>
].
If that's not the problem, check SO questions regarding EXC_BAC_ACCESS
to learn to debug them.