I'm developing an app for ios 7 in Xcode 5 using storyboards where the user uses a push segue to push over to a UITabBarController with 2 UIViewControllers "in it". Here's a cropped screenshot over the ViewControllers.

I've got this code in my UITabBarController:

#import "ViewTVTabBarController.h"
#import "MyManager.h"

@interface ViewTVTabBarController ()


@implementation ViewTVTabBarController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
    // Custom initialization
return self;

- (void)viewDidLoad
[super viewDidLoad];
// Do any additional setup after loading the view.

// Set the BarTintcolor to red and text colors to white
self.navigationController.navigationBar.barTintColor = [UIColor redColor];
self.navigationController.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:UITextAttributeTextColor];

// Set the NavigationItem Title
self.navigationItem.title = [[MyManager sharedManager] selectedTV];

- (void)didReceiveMemoryWarning
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
- (IBAction)actionBarButton:(id)sender {
// Offer options for this TV; options like delete, edit, etc

#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.


And 2 other "normal" UIViewControllers as the 2 tabs. The title does not get set and a NSLog would not fire.

What am I doing wrong?

Thanks! Erik

Related posts

Recent Viewed