使2个doLog显示在同一行上

时间:2010-06-24 15:59:48

标签: iphone xcode formatting logging code-formatting

- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{
[self doLog:[placemark.thoroughfare description]]; [self doLog:[placemark.locality description]];
if ([geocoder retainCount]) [geocoder release];
}

显示为:

Text on 2 lines http://cl.ly/035ae51f333a35e79342/content

我如何才能完成这项工作,以便我可以在同一条线上显示这些(通路和地点)?

1 个答案:

答案 0 :(得分:1)

[self doLog:[NSString stringWithFormat:@"%@ %@", placemark.thoroughfare, placemark.locality]];