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

QMUITextfield这个方法- (BOOL)respondsToSelector:(SEL)aSelector crash #235

Closed
renyufei8023 opened this issue Nov 7, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@renyufei8023
Copy link

commented Nov 7, 2017

请填写运行环境

  • 设备:iPhone
  • 系统:iOS 10.3.2
  • Xcode 版本:9.1
  • QMUI iOS 版本:2.0.0

请描述具体问题

使用了QMUITextfield,崩到这个方法里面

- (BOOL)respondsToSelector:(SEL)aSelector {
    // 修复 iOS 7 下将 UITextField.delegate 指向自身时会死循环的问题
    if (IOS_VERSION < 8.0 && [NSStringFromSelector(aSelector) hasPrefix:@"customOverlayC"]) {
        return NO;
    }
    
    BOOL a = [super respondsToSelector:aSelector];
    BOOL c = [self.originalDelegate respondsToSelector:aSelector];
    BOOL result = a || c;
    return result;
}

使用了IQKeyboardManager,刚才更新到2.0.1了还是崩 只是不是上面那一行了

相关截图(断点的堆栈、控制台的 log)

@MoLice MoLice added the duplicate label Nov 7, 2017

@MoLice

This comment has been minimized.

Copy link
Collaborator

commented Nov 7, 2017

#98 重复

@renyufei8023

This comment has been minimized.

Copy link
Author

commented Nov 8, 2017

嗯 好像项目里面也有BlockKit

@zhoon zhoon referenced this issue Jan 5, 2018

Closed

QMUITextField使用直接崩溃 #266

4 of 4 tasks complete
@MoLice

This comment has been minimized.

Copy link
Collaborator

commented Mar 30, 2018

2.5.0 版本已兼容 BlocksKit

@MoLice MoLice reopened this Mar 30, 2018

@MoLice MoLice closed this Mar 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.