Panda Pig • Patty original or translated works. Welcome reprint, Reprint please indicate the source.
If you feel that the writing is not good please more advice, if you feel good please support a lot of praise. Thank you! Hopy;)
Disclaimer: All translations provided by this blog are from the Internet and are for learning and communication purposes only. Also, do not remove this statement when reproduced.
In case of any dispute, there is no relationship between the blogger and the person who published the translation. Thank you for your cooperation!
The collection view (Collection view) has a delegate property that adheres to the Uicollectionviewdelegate protocol. The delegate property receives various delegate calls from the collection view. It contains various types of events. For example, a cell becomes highlighted or selected.
You need to know the difference between the highlighting and the selected state of the collection View unit.
The state of the cell below the finger is highlighted when the user presses it on the cell but does not lift the finger.
When the user presses and then lifts the finger, we say that she needs to complete an action on the cell, and the cell becomes selected.
iOS Collection view unit highlighting and selected differences