Joe is absolutely right. This also applies to user segments. (Example: SWRevealViewController, etc.)
This is what I did to make it work based on the documentation of Joe and the apples. In your YourTabBarViewController.h file, add the following:
@property (nonatomic, retain) UITabBarController * myTabBarController;
Then, in the YourTabBarViewController.m file in viewDidLoad, add the following:
self.myTabBarController = self; self.myTabBarController.delegate = self;
source share