0 Replies Latest reply: Jul 29, 2012 8:11 PM by jklanka
jklanka Level 1 (0 points)

Without StroyBoard we use initWithNibName Method to add System Icons to Tab Bar Controller. I found the sample below


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil


    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];

    if (self) {

        // Custom initialization

        self.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemContacts tag:1];


    return self;



But if I am using StoryBorad, Under Which Method I have to implement this instead of initWithNibName since there is no nib files. Please help me if there any sample.



iPhone 4, iOS 5.1