用于生成街道地址格式的 NSFormatter 实例。
#import "DMAddressFormatter.h"
NSString *formattedAddress = [[DMAddressFormatter standardFormatter] stringFromAddressWithStreet:@"1 Test St"
locality:@"My Suburb"
region:nil
postalCode:@"6000"
country:nil];
输出结果
1 Test St
My Suburb 6000
DMAddressFormatter 在 Apache License, Version 2.0 下可用。请参阅 LICENSE 文件以获取更多信息。