如何在应用程序中为其定义的术语列表创建链接?我需要将它们连接起来,用逗号分隔,但每个都有一个特定的链接。
简单。使用NSArray的componentsJoinedBy方法并传入分隔符@","。
componentsJoinedBy
@","
NSString *components = [array componentsJoinedBy:@","];
https://developer.apple.com/documentation/foundation/nsarray/1412075-componentsjoined