tableview inside a scrollview, tableview didselect is not working as expected

116 Views Asked by At

I have a Scrollview -> ContentView -> UIVIew -> TableView I am setting the scrollview contentsize,

self.ScrollView.contentSize = CGSize(width: UIScreen.main.bounds.width, height: self.UIVIewHeight.constant)

now i can able to see all my tableview cells and it is scrolling till the tableview content, everything is fine. But the when i try to select the tableview cell, it is not working. Just the cell at the top of the screen alone is working where as the other cells are not working.

I even added button to every tableview cell and tried with button action, the thing the frame of the tableview is short i think so, the cell at the top of the screen works where as the didselect on the other tableview doesn't work.

I referred many links and couldnot find any solutions, suggest me how to move in this

1

There are 1 best solutions below

1
IOSDeveloper On