I have created one tableview programmatically. But I want to enable horizontal scroll for that tableview. So I t开发者_开发百科hink I need to add first scrollview programmatically and then on that scrollview I need to add tableview which I have created. Please help me how to do this or correct me if I am going wrong.
You should not do so. UITableView
is subclass of UIScrollView
and adding one scrollView
on another will create problem.
UITableView
already has horizontal scroll property(as its super class has). You can use it.
精彩评论