Question: I'm using Swift to write an app now, In page A, I have a red button, it will switch to another view page(page B) and

I'm using Swift to write an app now,

In page A, I have a red button, it will switch to another view page(page B) and change the background color of the button to green once pressed, but I want it to keep green after I switch back to this page. How can I do that?

Thank you for helping me out.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!