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/xcode 9 beta issue: tableview contained in zfdraggablemodaltransition doesn't accept touch events #76

Open
spnkr opened this issue Aug 22, 2017 · 2 comments

Comments

@spnkr
Copy link

spnkr commented Aug 22, 2017

i have a tableview being presented, and when building with xcode 9 beta 5 it won't accept any user touch events. works fine with xcode 8/ios 10.3. any ideas on what the problem might be? elements in the presented modal controller that aren't in the tableview work fine.

wzzhu added a commit to wzzhu/ZFDragableModalTransition that referenced this issue Sep 24, 2017
This fixes the issue in zoonooz#76
The tableview(or scrollview) not accepting touch event for iOS 11. Caused by the new introduction of safeAreaInsets in iOS11.
@wzzhu
Copy link

wzzhu commented Sep 24, 2017

This is caused by the introduction of safeAreaInsets in iOS11.
Need to add the following code to touchesMoved method.

if ([self.scrollview respondsToSelector:@selector(safeAreaInsets)]) {
  topVerticalOffset -= self.scrollview.safeAreaInsets.top;
}

Fixed in the pull request.

@ralphcorleone
Copy link

@wzzhu <3 Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants