代码之家  ›  专栏  ›  技术社区  ›  Taylor Satula

在同一行上显示两个doLogs

  •  1
  • Taylor Satula  · 技术社区  · 15 年前
    - (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 回复  |  直到 15 年前
        1
  •  1
  •   mipadi    15 年前
    [self doLog:[NSString stringWithFormat:@"%@ %@", placemark.thoroughfare, placemark.locality]];