Make 2 doLogs display on the same line
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlace开发者_Python百科mark:(MKPlacemark *)placemark
{
[self doLog:[placemark.thoroughfare description]]; [self doLog:[placemark.locality description]];
if ([geocoder retainCount]) [geocoder release];
}
Displays as:
Text on 2 lines http://cl.ly/035ae51f333a35e79342/content
How can I make this work so that I can display these (thoroughfare & locality) the same line?
[self doLog:[NSString stringWithFormat:@"%@ %@", placemark.thoroughfare, placemark.locality]];
精彩评论