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点击按钮没反应 #4

Open
gengcong1991 opened this issue Sep 14, 2017 · 6 comments
Open

iOS 11点击按钮没反应 #4

gengcong1991 opened this issue Sep 14, 2017 · 6 comments

Comments

@gengcong1991
Copy link

在iOS 11的手机上发现底部的按钮无法点击了

@hiteshpatel1992
Copy link

hiteshpatel1992 commented Sep 20, 2017

You have to add all the .m file to your project->build phase - >Compile Sources and your error shall get solve I thing Xcode 9 does not link the files in the Compile Sources hope this helps you @gengcong1991

@Rookie-liu
Copy link

貌似是无法点击了 . 不知道为啥 ..

@gengcong1991
Copy link
Author

底部有一个继承UIToolBar的控件,那个玩意iOS11上有变化,多了一层视图,遮罩在它的子视图上面,导致无法点击了,可以尝试把继承UIToolBar改成继承UIView,然后稍作修改就可以了。

@gengcong1991
Copy link
Author

@hiteshpatel1992 thanks,let me try

@Rookie-liu
Copy link

OK了 , 总是看到层级上面都了一个层级 .. 原来是ToolBar... @gengcong1991 3q

@ieliwb
Copy link

ieliwb commented Oct 31, 2017

ZYShareSheetView.m修改成这样好了

  • (void)layoutSubviews
    {
    [super layoutSubviews];

    for (id view in self.subviews) {
    if ([view isKindOfClass:(NSClassFromString(@"_UIToolbarContentView"))]) {
    UIView *testView = view;
    testView.userInteractionEnabled = NO;
    }
    }

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

4 participants