thiagoperes / IDMPhotoBrowser

Photo Browser / Viewer inspired by Facebook's and Tweetbot's with ARC support, swipe-to-dismiss, image progress and more
MIT License
2.71k stars 642 forks source link

Using AutoLayout for progressView since [UIScreen mainScreen].bounds … #224

Open jackie-li opened 7 years ago

jackie-li commented 7 years ago

The position of progressView in IDMZoomingScrollView is incorrect when running on a landscape device. Since iOS 8, [UIScreen mainScreen].bounds is orientation-dependent. Using AutoLayout to fix this issue.

Reference:http://stackoverflow.com/questions/24150359/is-uiscreen-mainscreen-bounds-size-becoming-orientation-dependent-in-ios8