Dear SDK Guru's,
Picture the default start-up project in Xcode with the UITabBar.
For several reasons, I have to run the 'Tab Bar' with one ViewController. This could or could not be the reason.
I want to use:
Code:
- (void) tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
method to do things when clicked on a different tab.
However it crashes when I put this line in "viewDidLoad" method:
Code:
- (void)viewDidLoad
{
[[self tabBarController] tabBar].delegate = self;
}