国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

objective-c - ios頁面布局
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-04-28 09:05:46
0
2
760

問個布局的問題,整個頁面可以上下滑動,圈住的地方又可以左右滑動。

我的思路:
我想的整個頁面是 tableview,圈住的地方是個cell。然后cell又是個 collectionview。collectionview的一個item是個tableview
但是對于圈住的地方cell的高度 是由tableview的數(shù)據(jù)源決定的。
想問下大家有什么好的思路嗎

PHP中文網(wǎng)
PHP中文網(wǎng)

認(rèn)證高級PHP講師

reply all(2)
淡淡煙草味

It is not suitable to use UITableView for the entire page. There are sliding interactions up and down, and there are subscription events. So if there is too much logic in one cell, your ViewController will become bloated and difficult to maintain.
My idea is to create a parent container ViewController for the entire page, add a childViewController


upper part

for a ViewController


lower part

add a UI for a ViewController

TableView, according to the background If the given interface has multiple network requests, it can encapsulate a ViewControllerModel.

小葫蘆

The entire interface is a large scrollView, surrounded by a small scrollView. The three tableViews in the small scrollView slide horizontally (the content height of the large scrollView is the header view + the screen height, and the height of the small scrollView and tableView is the screen height). Remember to judge the tableView well. Pull-up and pull-down with large scrollView

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template