开发者

Make 2 doLogs display on the same line

开发者 https://www.devze.com 2023-01-04 10:54 出处:网络
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlace开发者_Python百科mark:(MKPlacemark *)placemark
- (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]];
0

精彩评论

暂无评论...
验证码 换一张
取 消