ViewController 带有 TalbeView 和 CollectionView 选项卡,如 IOS 中的 Google+ [英] ViewController with TalbeView and CollectionView tabs like Google+ in IOS

查看:27
本文介绍了ViewController 带有 TalbeView 和 CollectionView 选项卡,如 IOS 中的 Google+的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试了解如何构建这样的东西(google plus 个人资料页面):

i'm trying to understand how to build something like this (google plus profile page):

似乎有一个标题(如 tableheaderview),当用户点击 Foto、Post 或 Info 时,底部会更改为 UiTableView、UiCollectionView.

Seems that there is a header (like tableheaderview) and, when the user tap on Foto, Post or Info the bottom change to UiTableView, UiCollectionView.

我怎么能意识到这一点?使用容器视图?

How can i realize this? With ContainerView?

推荐答案

解决方案很简单(感谢 Natarajan):

The solution is simple (thanks to Natarajan):

只需将 UiCollectionView 添加到 UiTableViewCell.就这样

just add UiCollectionView to UiTableViewCell. That's it

这篇关于ViewController 带有 TalbeView 和 CollectionView 选项卡,如 IOS 中的 Google+的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆