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

iOS11兼容性问题 #48

Closed
iamnanyi opened this issue Sep 25, 2017 · 1 comment
Closed

iOS11兼容性问题 #48

iamnanyi opened this issue Sep 25, 2017 · 1 comment

Comments

@iamnanyi
Copy link

iamnanyi commented Sep 25, 2017

iOS11

  • (UIView *)getActualBadgeSuperView
    {
    return [self valueForKeyPath:@"_view"];
    }

[self valueForKeyPath:@"_view"]返回nil,无法获取UIBarButtonItem的view,小红点加不上

@iamnanyi
Copy link
Author

已解决,发现是iOS11改成了类似懒加载机制,要等到UIBarButtonItem被展示后才能获取到_view

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

1 participant