0

I made a custom toolbar and added a UITabBarItem. Now I want to load a xib on that button click. How can I do this?

Nick Toumpelis
  • 2,717
  • 22
  • 38
Nitin
  • 151
  • 6
  • 15

1 Answers1

1

Give the action to that UITabBarItem...and in this action give the name of your xib you wants to load..

-(IBAction)ButtonAction{

//eg:- is shown below   

FreeSetsViewController *viewController =[[FreeSetsViewController alloc] initWithNibName:@"FreeSetsViewController" bundle:nil];


[self.navigationController pushViewController: viewController animated: YES];
[viewController release];

//you will get the required XIB 
}

And still if you are unable to get it then please take a help from already asked How to load a Xib. and also a link that Sam Dufel shared to you

Good Luck!

Community
  • 1
  • 1
Sudhanshu
  • 3,950
  • 1
  • 19
  • 18
  • what problem exactly are you getting....you had given action to the button??...then what you get after that? – Sudhanshu Feb 24 '11 at 07:46