//接口文件
#import <UIKit/UIKit.h>
@interface BNRHypnosisViewController : UIViewController
@end
//实现文件
@implementation BNRHypnosisViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Set the tab bar item's title
self.tabBarItem.title = @"Hypnotize";
UIImage *image = [UIImage imageNamed:@"Hypno.png"];
// Put that image on the tab bar item
self.tabBarItem.image = image;
NSLog(@"!!!%@",self);
}
return self;
}
@end
在UIViewController里面并没有UITabBarItem *tabBarItem 这个属性... 想知道self.tabBarItem是怎么回事???