如何在两个tableviews之间传输数据.. [英] how to transfer the data between two tableviews..

查看:93
本文介绍了如何在两个tableviews之间传输数据..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们在第一个tableview中单击一个单元格,它必须从服务器中检索数据,并且应该在第二个表view中显示。如何做到这一点?

if we click on a cell in first tableview it have to retrive data from server and should display in second table view.how to do this??

推荐答案

您需要解析服务器响应并将其存储为NSArray或NSDictionary,然后您可以将此信息传递给表视图委托。



我希望你得到XML或JSON格式的服务器响应。
You need to parse server response and store it NSArray or NSDictionary and then you can pass this info to table view delegate.

I hope you are getting server response in XML or JSON format.


这篇关于如何在两个tableviews之间传输数据..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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