ipad how to create programmatically multiple tables on one view

前端 未结 3 779
执笔经年
执笔经年 2020-12-10 09:58

i need to create an iPad app where i have to show multiple tables(no grid, just 1 collumn with multiple rows) in one single view. this have to be done programmatically becau

3条回答
  •  Happy的楠姐
    2020-12-10 10:31

    From your description, I'm assuming that you want to have an arbitrary number of tables, all of which are sitting on a single view which is itself scrollable (so that you scroll up or down to get to all of the tables). This is highly inadvisable in iOS, as the table view is itself a subclass of the scrollable view and you will have major problems getting the individual tables to scroll properly along with the "master" scrollable view.

    Assuming this is what you're trying to do, you would be much better off using a single table view that is split into sections. Here is a good tutorial that shows how to do this.

提交回复
热议问题