我只是对我需要用于按钮,图像视图等的图像大小感到困惑。 我想调整所有手机的图像。 屏幕高度/宽度与不同的iPhone之间应该有什么比例。用于不同手机的Ios图像大小指南
就像我有一个按钮。我在下面创建way-
UIButton *takePicButton = [UIButton buttonWithType:UIButtonTypeCustom];
takePicButton.frame = CGRectMake(0, SCREEN_HEIGHT-UI_ITEM_HEIGHT, SCREEN_WIDTH, UI_ITEM_HEIGHT);
[takePicButton setBackgroundImage:[UIImage imageNamed:@"take_photo.png"] forState:UIControlStateNormal];
[self.view addSubview:takePicButton];
[takePicButton addTarget:self action:@selector(takePicture:) forControlEvents:UIControlEventTouchUpInside];
此按钮我需要什么尺寸的图像上的xcode添加支持iPhone 4 - iPhone 7.
在此先感谢。
阅读[指南](https://developer.apple.com/ios/human-interface-guidelines/graphics/custom-icons/)并创建3个尺寸1x,2x和3x – Tj3n