所以我有一个UIScrollView和滚动工作。我在它上面添加了一个标签,它也滚动了。但是,当我添加图像视图时,滚动有效,但图像没有显示,我收到此错误:
Could not load the "block" image referenced from a nib in the bundle with identifier
我的ViewController.m:
@interface ViewController : UIViewController{
IBOutlet UIScrollView * scroller;
}
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
[scroller setScrollEnabled:YES];
[scroller setContentSize:CGSizeMake(320, 600)];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
}
@end
我已禁用“使用自动布局”,将尺寸更改为“自由形式”,并将视图高度更改为600.
关于如何使这项工作的任何想法?