NSArray *listItems = [temp componentsSeparatedByString:@","];
Can anyone please tell me why?
temp is an NSString
Here's the entire code
- (NSString *)getStreetAddress
{
NSString* temp = [addressArray objectAtIndex:0];
if (temp != nil) {
NSArray *listItems = [temp componentsSeparatedByString:@","];
temp = [listItems objectAtIndex:0];
}
return temp;
}
EXC_BAD_ACCESS is the error