UIViewControllerがタブ内にあるか判別する
Viewのサイズ調整をするのにUITabBarController内に、UIViewControllerがあるのか判別したいことがありました。
if(self.tabBarController){ NSLog(@"IN TAB") ; } else { NSLog(@"NOT IN TAB") ; }
Viewのサイズ調整をするのにUITabBarController内に、UIViewControllerがあるのか判別したいことがありました。
if(self.tabBarController){ NSLog(@"IN TAB") ; } else { NSLog(@"NOT IN TAB") ; }