How is UITableView handled?
I'm trying to get a better understanding of how UITableView
and work UITableViewCell
, and one of them is sensory processing.
So when I touch a row in a table view, what exactly happens? My basic understanding:
-
UITableView
is thisUIScrollView
, so it first checks if it has a touch or a scroll - If it's not scrolling, then the touch is analyzed to see which line is below the touch point.
- It gets the cell at that indexPath (how?) And tells it
setHighLighted
,setSeletected
This is true? Does anyone have a deeper understanding of this than this?
Perhaps something similar to the lines you mentioned, you never know until you see the source, why do you want to know anyway? do you do your own table lookup?
The last step is for the touch to be passed to the view of the contents of the cells. This way, any subpoints in the cell will receive touch events. I'm sure this will happen after your step 3, and the cell selection actions will be processed first.