Graphics Programs Reference
In-Depth Information
Open TimeViewController.m and do the same thing:
- (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)bundle
{
self = [super initWithNibName:nil
bundle:nil];
if (self) {
UITabBarItem *tbi = [self tabBarItem];
[tbi setTitle:@"Time"];
UIImage *i = [UIImage imageNamed:@"Time.png"];
[tbi setImage:i];
}
return self;
}
Now when you build and run the application, you will also see helpful images in the tab
bar to help users understand their options. ( Figure 7.16 ) .
Figure 7.16 Tab bar items with labels and icons
 
Search WWH ::




Custom Search