开发者

How to add tableview on scrollview programmatically

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜