I'm creating it with swift3.
I am switching the screen using the UITabBarController.
FirstViewController and SecondtViewController.
When the FirstViewController screen is active, click the SecondtViewController tab to
I'm switching to the SecondtViewController.
When the FirstViewController screen is active, if you click on the FirstViewController tab, I would like to send a message (it can also be displayed in the console in print).
What should I do?
Resolved
swift3 uitabbarcontroller
You can obtain the selected ViewController by creating a subclass of UITabBarController
and implementing the delivery method didSelectViewController
.
This site may be helpful.
© 2024 OneMinuteCode. All rights reserved.