我将视图背景设置如下:
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:
@"backgr.png"]];
当我在iphone 4(Retina 3.5 英寸)中运行它时它工作正常。但是当我在iphone 5(Retina 4 英寸)中运行它时,图像没有正确设置或显示。图像看起来像 4 倍放大/炸毁。
编辑:
I have two different images for iphone 4(640x960) and 5(640x1136).
What is the problem here? Is it scaling problem or another problem?
Please guide me on this.