Reputation: 1
I have made a tabbar application which display images in detail view i have two views first and seconed at the image view i have a button addtofavorities i want to click on addtofavorities and add the image name into seconed view.seconed view is a table view
Upvotes: 0
Views: 71
Reputation:
If you want to save the image name to other view then, just take a string in other view import other class in first view add that value to the string of other class and send to other class, it will carry that value to your other view.
Upvotes: 2
Reputation: 526
Please try to explain yourself a bit better. What do you want to do? Does your implementation crash? Based on your (lack of) explanation, it's as simple as set a selector to your favourite button and change second view.
Upvotes: 0