To do both, and the text of the second label changed?

Class BaseCell : UICollectionViewCell{
 //foo() {download data and change label1 & label2 text}
 //foo2() {label1 and Label2 change text}
 //button.addTarget(self, action: #selector(foo2), for: .touchUpInside)
class Cell1 : BaseCell {
class Cell2 : BaseCell {

A collection of several cells. In the first cell and added button лейбл1. In the second cell лейбл2. There is a function which downloads the data and changes the values of labels. there is a button clicking on which should change the text of all labels. When you change the text лейбла1 but does not change the text лейбла2. If you will remove the button from ячейки1 and paste it in cell 2 and then changing the text лейбла2 but does not change the text лейбла1. How to fix that would be to change the text of both labels
July 2nd 19 at 14:18
2 answers
July 2nd 19 at 14:20
You need to update the whole table, so I need to call a function that updates all cells.
You can also update all the cells with animation
`- (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation
I do not remember how to swift will.
COLLECTION - abagail_Jaskolski commented on July 2nd 19 at 14:23
: - (void)reloadItemsAtIndexPaths:(NSArray *)indexPaths - eleonore19 commented on July 2nd 19 at 14:26
July 2nd 19 at 14:22
- change the text in the cells needs someone else, not the cell. The cell only displays the info that it comes.

- function machining injection data and pressure should be in some kind of controller
- which after processing the information will update the model
and then say kolekcijoje - "Upgrade"
- ...or updating a specific cell... That's right.

Find more questions by tags iOSSwift