I have a class from URLEmbeddedView which performs an operation on a given String. However I'm trying to use this class for a bunch of Strings after each other, and not just one. I prepared an Array of String, and now I want to perform this class on each element of an Array.
The code:
var linkArray = [String]() //Contains bunch of Elements
OGDataProvider.sharedInstance.fetchOGData(urlString: TheUrlString) { [weak self] ogData, error in
if let _ = error {
return
}
let pageTitle = ogData.pageTitle
Cell.titleLabel.text = pageTitle
}
So instead of TheUrlString I want to have my array, as I need the pageTitle for each element in that array. How can I accomplish this? Is it possible to use an if which loops through every element?
for-inloop to initialise multiple async operation to download data. If you want dependency or ability to cancel, thanNSOperationQueuecan help.