【问题标题】:Make 2 doLogs display on the same line使 2 个 doLogs 显示在同一行
【发布时间】:2011-03-07 21:38:24
【问题描述】:
- (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

我怎样才能完成这项工作,以便我可以在同一行显示这些(主要路线和位置)?

【问题讨论】:

    标签: iphone xcode formatting logging code-formatting


    【解决方案1】:
    [self doLog:[NSString stringWithFormat:@"%@ %@", placemark.thoroughfare, placemark.locality]];
    

    【讨论】:

    • 我收到“反向地理编码器错误:Error Domain=MKEditorDomain Code=4 '操作无法完成。(MKErrorDomain 错误 4.)'”
    猜你喜欢
    • 2021-11-19
    • 1970-01-01
    • 2011-01-13
    • 2013-04-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-23
    • 1970-01-01
    相关资源
    最近更新 更多