Skip to content
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

iOS 11 glitch with MXScrollViewController #82

Closed
Aurazion opened this issue Sep 22, 2017 · 8 comments
Closed

iOS 11 glitch with MXScrollViewController #82

Aurazion opened this issue Sep 22, 2017 · 8 comments
Labels

Comments

@Aurazion
Copy link

Hi,
When I build my project with Xcode 9 / iOS11, a glitch appear when I scroll it. The same with Xcode 8 / iOS10 works great.
This issue occur whith MXScrollViewController.

With the MXScrollViewController demo, there is also a problem with the UIWebView when you scroll to top. Could you check please ?

Don't hesitate to contact me.

Thanks!

@Aurazion
Copy link
Author

Aurazion commented Sep 22, 2017

The problem occur when I scroll down and then scroll to top (see the screenshot attached).

Thanks @maxep

ios11

@Nexmind
Copy link

Nexmind commented Sep 22, 2017

There are a similar problem with parallax header using tableview.

For tableview, there are a new property contentInsetAdjustmentBehavior that you can put to .neverand it solve the problem.

Maybe you can check if there are something similar for scrollview. It should be exist.

Something like that scrollview.contentInsetAdjustmentBehavior = .never

@Aurazion
Copy link
Author

I will try this and keep you informed, thanks @Nexmind !

@Aurazion
Copy link
Author

@Nexmind It solve my problem thanks ! But now I've a "padding" on the top of the scrollview ? Did you know how I can delete it ?
Thanks !

ios11_2

@Nexmind
Copy link

Nexmind commented Sep 22, 2017

I had similar issue on iPhone X only with some tableview in my app.
I have no real solution for the moment. What i made as quick win option is to substract padding height in my top constraint if the phone was an iPhone X.

if DeviceType.IS_IPHONE_X {
       self.cstTopTableView.constant = self.cstTopTableView.constant - 25
}

@Aurazion
Copy link
Author

Ok it's just a problem with my constraints ... It now works great ! Thanks again @Nexmind ! I will try your solution for the iPhone X :-)

@maxep
Copy link
Owner

maxep commented Sep 29, 2017

Thanks @Aurazion and @Nexmind
I'm struggling with this new content inset adjusment behavior...
@Aurazion have you try to uncheck the content inset adjustment of your view controller?

@stale
Copy link

stale bot commented Aug 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 9, 2019
@stale stale bot closed this as completed Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants