开发者

Pick value from IPhone tableview

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

how to pick a data from table view 开发者_StackOverflowand bring it back to previous view.

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

Thank in advance, prasad.


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..!!


You can make an object in App Delegate class.set its value as the value picked from tableview in the table view class.In the previous class you can make an object of app delegate class & access that particular object whose value was set with the value picked from table view

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜