开发者

taking data from one table view and to display it in another tableview

开发者 https://www.devze.com 2023-02-11 06:36 出处:网络
hi i have data in my table view and i just want to di开发者_开发知识库splay the same data in the next table view , that means (while clicking a button in first view navigating to another view and disp

hi i have data in my table view and i just want to di开发者_开发知识库splay the same data in the next table view , that means (while clicking a button in first view navigating to another view and display the same data in seconds view's table).


Instead of considering taking data from one table to another, you should think it this way, the two tables can simply share a common data source (let's say an NSArray), even though these two tables have a parent-child hierarchy.


I suggest you to make two UITableViews one in your firstView and one in your secondView and give them the data from the same source (say it will be an NSMutableArray or NSDictionary),and you will get the same data in two UITableViews.It will be a simple approach and also see cocoawithlove

0

精彩评论

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