ios - UITableView didSelect delegate doesnt gets called? -


in app, have added uitableview on scrollview. have disabled scrolling in table view. so, scrollview scrolls, have adjusted scroll view content size tableview frame. so, can access cells.

consider, there 5 rows visible in screen, if tap of row, didselectrowatindexpath method gets called. if scroll down, 6th cell , tap on it. method doesnt gets called.

same issues happens uicollectionview.

the reason why have added is. when scroll scroll view, view in should fixed in top , tableview behind should go on scrolling. might have seen in many of apps in android. so, have used scrollview didscroll delegate offset position. per it, make view fixed , vice versa.

make height of uitableview same content height of table. set content size of uiscrollview height of uitableview

here brief example demonstrate

cgrect rect = tbltopics.frame; rect.size.height = tbltopics.contentsize.height; tbltopics.frame = rect;  self.scrlvwfacultydtl.contentsize = cgsizemake(self.scrlvwfacultydtl.frame.size.width, tbltopics.frame.size.height); 

in above example tbltopics instance of uitableview , scrlvwfacultydtl instance of uiscrollview

hope you..


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -