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

performSelector: withObject的问题 #3

Open
huangzhifei opened this issue Nov 29, 2017 · 0 comments
Open

performSelector: withObject的问题 #3

huangzhifei opened this issue Nov 29, 2017 · 0 comments

Comments

@huangzhifei
Copy link

在 IFMMenuContainerView 的单击手势里面使用了 performSelector: withObject 去 dismiss ,这里何不直接调用?使用 performSelector: withObject 去传bool值,接受方的参数是需要使用NSNumber的,比如加一个这样的私有方法

  • (void)dismissMenuWithNumber:(NSNumber *)flag {
    BOOL animated = [flag boolValue];
    [self dismissMenu:animated];
    }

或者不如直接
IFMMenuView *targetView = (IFMMenuView *)subview;
[targetView dismissMenu:YES];

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