Closed Tippit closed 6 years ago
hi,
Please i need help !
image is not centered in all device, ex : with iPhone 7 Plus ( iPhone 7 is selected as preview in interface builder) if you load your app in iPhone SE the same problem appear. if you load your app in iPhone 7 the result is ok
[super viewDidLoad]; UIView *contentView = [UIView new]; UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"default.jpg"]]; [contentView addSubview:imageView]; [_scrollView addSubview:contentView]; _imageView = imageView;
Your code seems to need correction
hi,
Please i need help !
image is not centered in all device, ex : with iPhone 7 Plus ( iPhone 7 is selected as preview in interface builder) if you load your app in iPhone SE the same problem appear. if you load your app in iPhone 7 the result is ok
Your code seems to need correction