yackle / CLImageEditor

MIT License
2.21k stars 574 forks source link

loadimage is not centered in all device #197

Closed Tippit closed 6 years ago

Tippit commented 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

img_0215