一个 UIViewController 中有 2 个视图
我需要知道如何实现下图的目的(联系信息视图和查询视图),即使不编写代码,任何建议都会很棒。
图片:
I need to know just how to achieve the purpose of the image below (Contact info view and Inquiry view) any suggestion will be great even without writing code.
the image:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
其中隐藏了。当用户将联系信息切换为查询时
隐藏另一个视图,只需更改视图的隐藏属性即可。
不同的数据源并将逻辑更改为 UITableView 委托
方法。
on of them hidden. When user switch Contact Info to Enquiry then
make hidden another view, just change hidden property for views.
different datasources and change logic into UITableView delegate
methods.
在按钮控制器下方放置两个视图彼此重叠,一旦收到点击,就会显示一个视图并隐藏另一个视图......它非常简单,实际上希望这会有所帮助。
Just below your button controller put two view overlapping each other and once a tap s received show the one and hide the other... its pretty simple actually hope this helps.
类似的东西应该可以工作:
然后使用两种方法来显示视图。可以很简单,例如:
希望有帮助
Something like that should work:
and then make 2 methods to show the views. Can be simple like:
Hope it helps