我在做导图页面的时候,我是获取屏幕的高度和宽度来创建图片尺寸的,为什么图片在5 6和6plus上都没有问题,在4和4s上就变形来呢?
- (void)makeInitialPage
{
CGSize screenSize = [UIScreen mainScreen].bounds.size;
CGFloat contentWidth = screenSize.width * 4;
CGFloat contentHeight = screenSize.height;
self.scrollView.contentSize = CGSizeMake(contentWidth, contentHeight);
for (int i = 0; i < 4; i++){
UIImageView *temp = [[UIImageView alloc] initWithImage:[UIImage imageNamed:[NSString stringWithFormat:@"%d",i]]];
CGRect pageFrame = CGRectMake(i * screenSize.width, 0, screenSize.width, screenSize.height);
temp.frame = pageFrame;
[self.scrollView addSubview:temp];
}
}
ios7.1版本下 iphone4s和iphone5的适配问题
题主看一下是不是这个原因。因为我遇到两次都是这个问题了,ios7的launchscreen image是需要设置的。