문제

in iOS 7 the MWPhotoBrowser is using weird coordinates for the first displayed image. I looked into the code but I don't get it.

In iOS 6 it is only possible to drag/swipe the images in the browser horizontally, but in iOS 7 its movable into any direction.

Maybe someone has an idea on this.

@see: https://github.com/mwaterfall/MWPhotoBrowser/issues/126

도움이 되었습니까?

해결책

As commented on https://github.com/mwaterfall/MWPhotoBrowser/issues/126#issuecomment-24834650

you need to add

if ([self respondsToSelector:@selector(automaticallyAdjustsScrollViewInsets)]){
    self.automaticallyAdjustsScrollViewInsets = NO;
}

to the viewDidLoad of the MWPhotoBrowser.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top