My UITabBarController's didSelectViewController method is not getting called?

后端 未结 3 1486
野的像风
野的像风 2021-01-14 07:01

Here is my code stub for my app-delegate.m -- it never gets called.

- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(         


        
3条回答
  •  难免孤独
    2021-01-14 07:30

    Did you make a connection between your UITabBarController and your application delegate?

    - (void)applicationDidFinishLaunching:(UIApplication *)application
    {
         ...
         tabBarController.delegate = self;
         ...
    }
    

提交回复
热议问题