NSMutableString *address = [[NSMutableString alloc]init];
if (![[jsonObjects objectForKey:@"city"] isEqualToString:@""]){
if (address.length != 0){
[address appendString:@","];
}
[address appendString:[jsonObjects objectForKey:@"city"]];
}
if (![[jsonObjects objectForKey:@"city"] isEqualToString:@""]){
if (address.length != 0){
[address appendString:@","];
}
[address appendString:[jsonObjects objectForKey:@"city"]];
}
No comments:
Post a Comment