uzysjung / UzysCircularProgressPullToRefresh

Give Pinterest Like PullToRefresh to any UIScrollView with just simple code
MIT License
340 stars 51 forks source link

Content inset top on iPhone 6 #12

Closed bmancone closed 9 years ago

bmancone commented 9 years ago

Hi,

First I'd like to thank you for your awesome lib I've been using it for months now and never had to complain ! :smile:

Unfortunately, today, I'm having an issue with an iPhone 6.

Once the animation stops, it looks like the contentInset.top changed resulting in a large white space before the cells.

I tracked down the issue to this line of code. By using 64.00 like it was before iOS8, the issue seems to be solved.

If it helps, I have an UITableViewController embedded in a container view

Thanks for looking it !

Br,

uzysjung commented 9 years ago

you are welcome.

ZuzooVn commented 9 years ago

view.originalTopInset = view.portraitTopInset = 64.0;

I think it should be

view.portraitTopInset = 64.0;

albertschulz commented 9 years ago

Yes, I think this is right.

view.portraitTopInset = 64.0;