I have 2 UIViewController
1- UIViewController
with UICollectionView
. In cell I have UIButton
and UILabel
. When I press UIButton
I have save text from UILabel
to UserDefaults array. (Main screen)
2- UIViewController
When I launch the app I want to tap the UIButton
in cell and show the badge with array.count (for example I tap on 3 different Button and array have 3 count) on second Tab Bar Item
Im tried to do this through the protocol in UICollectionViewCell
class and add the extension to UIViewController
with CollectionView