我有一个比普通 iPhone 屏幕更大的图像,我想将其设置为背景图像,但是当我加载模拟器时,我只看到图像的一部分。这是我分配图像的方式:
UIImage *background = [UIImage imageNamed:@"background.png"];
[self.view setBackgroundColor:[UIColor colorWithPatternImage:background]];
如何将背景图像设置为 self.view.bounds 之类的东西?如果我要使用 UIImageView 我如何确保它在后台!