New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird photos alignment on iOS 7 #126
Comments
I have noticed this too. Have not found a workaround yet though. |
I got the same problem and already added a comment on #105 so maybe it's worth looking at that comment too |
If you add the following right at the top of viewDidLoad in MWPhotoBrowser.m it solves the issue (and everything still works fine in iOS6)
|
Hi, |
Ah you're right. I'm a bit of a noob with iOS programming. It feels like we need to remove 20px from a frame somewhere but I don't know what I am doing to be honest, just hacking around trying things |
:) ... but if you set it up as you proposed the images are only swipeable horizontally (like on ios6). ... I don t get it either |
OK think I have found a proper solution now, again in viewDidLoad:
Got it from the iOS7 Transition Guide: |
That looks right, anyone want to open a PR? |
Thank you very much. works great here. I Changed MWPhotoBrowser.m (viewDidLoad) adding the following code: if ([self respondsToSelector:@selector(automaticallyAdjustsScrollViewInsets)]){ |
This is now fixed ;-) Thanks your patience! |
Since in iOS 7 has changed the origin of coordinates, and since wantsFullScreenLayout has been deprecated, photos are aligned in wrong ways.
The text was updated successfully, but these errors were encountered: