Post

Replies

Boosts

Views

Created

How to save UIImage array and then use it?
I already have an array: var imgArr = [UIImage]() I want to add there elements: imgArr.append(UIImage) Save it, for example: imgArr.save() // example And then get items from it, to add array elements to cells: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {         let cell = tableView.dequeueReusableCell(withIdentifier: "MyCell", for: indexPath) 	 cell.imageView!.image = imgArr[indexPath.row]         return cell     }
1
0
423
Dec ’20