I'm new in Swift and I would like to how to do this.
When I touch rightBarButtonItem
button I would like the following to appear:
The Test and Test2 text should display in the same view controller.
If I don't touch rightBarButtonItem
the Test and Test2 should not display. (Test and Test2 isHidden
will be true
.)
Is this possible or do I need another way?
I have been searching for a long time on the internet. But I have not been able to find anything. Please help or try to give some ideas of how to achieve this.
This is possible, you can add
Test
andTest2
in aview
orstackView
, then change the isHidden property of the view. but as Matthew said, apple prefer to use tab bars.set the view isHidden property to true in ViewDidLoad:
you can also use SWReveal pod.
or you can create it by yourself in swift using this raywenderlich document