从IPhone的tableview挑选价值 [英] Pick value from IPhone tableview

查看:105
本文介绍了从IPhone的tableview挑选价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始开发iPhone应用程序,但现在我坚持了这个问题,我的问题是,

I have just started developing iphone applications, but now i'm stuck with this problem, my problem is,

如何挑选从表视图数据,并把它带回previous视图。

how to pick a data from table view and bring it back to previous view.

如果你可以给我一个样品code,这将是真正的AP preciated。

if you can give me a sample code that would be really appreciated.

感谢在前进,
普拉萨德。

Thank in advance, prasad.

推荐答案

我不认为改变的的AppDelegate 将是一个很好的做法虽然会工作。你应该preFER创建一个<一个href=\"http://stackoverflow.com/questions/6065965/how-to-define-a-global-variable-that-can-be-accessed-anywhere-in-my-application/6067515#6067515\">Model类在那里你可以创建一个变量,并在表中设置它的值。当你回到previous查看您可以使用包含选定的表值相同的变量。结果
祝你好运.. !!

I don't think altering AppDelegate will be a good practice although it will work. You should prefer creating a Model class where you can create a variable and set its value in your table. When you go back to previous view you can use the same variable which contains the selected table value.
Good luck..!!

这篇关于从IPhone的tableview挑选价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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