如何在第二个ViewCcontroller中使用第一个ViewController的解析元素? [英] How to use parsed elements of the first ViewController in second the ViewCcontroller?

查看:94
本文介绍了如何在第二个ViewCcontroller中使用第一个ViewController的解析元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用中,我将 GET 发送到我的服务器并收到一些回复。我有来自主视图控制器类的TavleView和TableViewController类。我在我的主ViewController中进行解析,我想用我从第一个ViewController收到的结果填充TableViewCells。而且我还想在新的 ViewController 中显示任何单元格的详细信息,名为 DetailViewController 。现在,视图中的任何导航都像我想要的那样..

in my app i send a GET to my server and receive some response. I have TavleView and TableViewController classes expect from my main view controller class. I do the parsing in my main ViewController and i want to populate the TableViewCells with the results i receive from the first ViewController. And also i want to display the details of any cell in a new ViewController called DetailViewController. Now any navigation amongst the Views work as how i want..

推荐答案

去看看WWDC 2011的播客, WWDC 2011 - 会议309 - 介绍Interface Builder故事板

go check out WWDC 2011's podcasts, WWDC 2011 - Session 309 - Introducing Interface Builder Storyboarding.

我相信这是正确的视频,它会说明你正在寻找的东西。他们改进了UITableView,并在ios5的IB故事板中添加了许多功能。它将有助于演示如何在一个View Controller中获取数据并在第二个UIViewtable Controller中显示它。

i believe this is the correct video and it will demostrate you exactly what you are looking for. they revamped UITableView's and added a lot of functionality into the IB storyboard in ios5. it will help demonstrate how you can take data in one View Controller and and display it in a second UIViewtable Controller.

这篇关于如何在第二个ViewCcontroller中使用第一个ViewController的解析元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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