I have scrollView. In this scrollView I have another view. In this view I have tableView.
ScrollView>View>TableView
The cells of the tableView are custom and have labels in it.
I need when the label passes thru the center of the scrollView to appear a dimmingView and only the label to be visible.
So I have to use scrollViewDidScroll and inside to add:
let rectOfCell = theTableView!.rectForRow(at: IndexPath(row: 0, section: 0))
let rectOfCellInSuperview = theTableView!.convert(rectOfCell, to: scrollView)
I don't know if this code is going to work, because I don't know how to put the dimming view with only label visible.
After the rect of the label passes thru the middle of the scrollView I need dimming view to appear. How to do that ?