You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having a collectionView with images and a checkBox on the topLeft corner and I want to record tap event for the checkBox so that I can save the state of the cell to overCome scrolling problem for collectionView.. If the checkBox is in normal View I can conform to the protocol and implement didTap(_ checkBox: BEMCheckBox) to handle and listen to touchEvents but what if the checkBox is placed in a collectionViewCell. All I want to know is, can I create a action method or implement a function and add it as target to the reference of BEMCheckbox like below?? stateCheckBox.addTarget(self, action: #selector(checkBoxTapped(_:)), for: .touchUpInside)
The text was updated successfully, but these errors were encountered:
chejarla-venkatesh
changed the title
How to record touch events for checkBox in UITableView or UICollectionView
How to record touch events for BEMCheckBox in UITableView or UICollectionView
Aug 31, 2018
I am having a collectionView with images and a checkBox on the topLeft corner and I want to record tap event for the checkBox so that I can save the state of the cell to overCome scrolling problem for collectionView.. If the checkBox is in normal View I can conform to the protocol and implement didTap(_ checkBox: BEMCheckBox) to handle and listen to touchEvents but what if the checkBox is placed in a collectionViewCell. All I want to know is, can I create a action method or implement a function and add it as target to the reference of BEMCheckbox like below??
stateCheckBox.addTarget(self, action: #selector(checkBoxTapped(_:)), for: .touchUpInside)
The text was updated successfully, but these errors were encountered: