I am having trouble working out how to open and close things on tap. I will be using this function throughout the story app I am creating.
On certain pages, a "?" button will signify that a quiz is there. Tapping the button will open the quiz. That part is fine. But I want the button to change to an "x" and when tapped will close the quiz.
I will have the same for info buttons. a "book" icon will be tapped and information will appear. The icon will change to an "x" and when tapped the information will close.
Is there a step-by-step tutorial to do this? I have searched but cannot find anything.