私の問題は、バンドルから画像を正しく表示できないように見えることです。このメソッドは、テーブルビューを制御するビュー コントローラーにあります。headerViewは .nib ファイルの tableview と共にロードされ、正常にロードされるいくつかの UILabel (表示されていません) が含まれています。何か案は?
- (void)viewDidLoad {
[super viewDidLoad];
[[self view] setTableHeaderView:headerView];
NSBundle *bundle = [NSBundle mainBundle];
NSString *imagePath = [bundle pathForResource:@"awesome_lolcat" ofType:@"jpeg"];
UIImage *image = [UIImage imageWithContentsOfFile:imagePath];
imageView = [[UIImageView alloc] initWithImage:image];
}