When the active tab is tapped again using the UITabBarController

Asked 1 years ago, Updated 1 years ago, 64 views

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

2022-09-30 18:21

1 Answers

You can obtain the selected ViewController by creating a subclass of UITabBarController and implementing the delivery method didSelectViewController.

This site may be helpful.


2022-09-30 18:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.