首页 > 京东App 的这种筛选页面的实现

京东App 的这种筛选页面的实现

类似于京东的这种筛选的页面,我在tableview中有创建了一个tabelview,但是他的页面看着带导航控制器,大家指导下看这个什么原理实现的,谢谢!


It should be on the self.navigationController.view instead of self.view

If I were you, I will create another view controller for the selection view.

In the original view, we use present view controller to present a navigation controller with the selection view controller. You can add animator for the transition and adjust the frame of the selection view controller, in order to make its background transparent.


这感觉就是一个UITableView浮动在主 view 上吧,底下一层半透明的黑色背景。


谢邀~

正好 手头有京东客户端,

它这个应该跟1楼说的一样,直接在当前vc(viewcontroller)覆盖一层mask(黑色半透明view)再加一个筛选view(nib形式,里面包括一个head 和 tableview),添加进出动画效果。

这样做简单粗暴,缺点是可能内存占用多一些,同时要占用商品列表内存和筛选table的内存(不过其实影响不大)

另外不要被vc这种抽象的view所迷惑,就把它当做一种view类来看待会好理解很多,最多就是占用内存多一些。
当然合理规划vc还是有必要的,会让app更加流畅。

【热门文章】
【热门文章】