简体   繁体   中英

Getting semantic issue “property tabBarItem not found on object of type FeedViewController” on xcode 6, but on xcode 5.1.1 its working fine

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
    self.title = @"Feed";
    self.tabBarItem.image = [UIImage imageNamed:@"tab_icon_feed"];// this line causing issue

}
return self;
 } 

This is the method causing the problem.Not sure if you need some more code in order to see whats wrong if yes just let me now. I dont really understand what went wrong because it was working and suddenly this error appeared.

尝试导入UIKit: @import UIKit;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM