How do I create links from a list of terms for its definition within the app? I need to present them concatenated, separated by commas, but each one with a specific link.
Easy. Use NSArray's componentsJoinedBy
method and pass in your delimiter @","
.
NSString *components = [array componentsJoinedBy:@","];
https://developer.apple.com/documentation/foundation/nsarray/1412075-componentsjoined
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.