evgenyneu / Auk

An image slideshow for iOS written in Swift.
MIT License
278 stars 44 forks source link

Content size is too high #1

Closed ciryon closed 9 years ago

ciryon commented 9 years ago

I think I'm using Auk as intended and have instantiated a UIScrollView from my storyboard. I have used

self.scrollView.auk.show(image: downloadedImage)

to set images. The problem is that content size is too high so that the images can be dragged vertically. When the first image is loaded a blank space above the image is visible. Please see attached screenshot. contentsize_problem The bottom part of the image is not visible, but at the top it's black (the UIScrollView background color).

Anything I'm doing wrong or is this a bug?

evgenyneu commented 9 years ago

Hi, interesting, do you have all constraints setup on the scroll view? It looks like the layout is having problem with its height.

Let me know how it goes.

ciryon commented 9 years ago

"Also try clearing the Adjust Scroll View Insets checkbox in the Attribute Inspector of your View Controller."

Wow, thanks, that did the trick!

evgenyneu commented 9 years ago

Glad it worked for you, @ciryon. I will put the note about "Adjust Scroll View Insets" in the readme.