D
D
derSamara2015-08-04 14:50:51
iOS
derSamara, 2015-08-04 14:50:51

How to correctly implement copying array elements from the 1st Tableview to the 2nd Tableview?

1st tableview (list of recipes) - a list of recipes is stored, a button "add to favorites" is displayed above each recipe.
2nd tableview - table of favorite recipes.
When clicking on "add to favorites" the element was added to the 2nd tableview.
Thank you for your attention.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Volodymyr Lavryk, 2015-08-04
@Vo0ne

I would do this:
create a new NSMutableArray that is meant to store the values ​​of the selected cells, and then pass this array to the new table as a data source.

A
Alexander Podrezov, 2015-08-07
@alpodrezov

Good afternoon.
In delphi, in order to copy an object, the Assign object method is used to which an object of the same type is passed.
Perhaps the tableview has a similar
Thank you!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question