Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

MMAlertView 点击「确定」不消失问题。 #46

Open
iostalks opened this issue Sep 29, 2016 · 0 comments
Open

MMAlertView 点击「确定」不消失问题。 #46

iostalks opened this issue Sep 29, 2016 · 0 comments

Comments

@iostalks
Copy link

iostalks commented Sep 29, 2016

 MMAlertView *inputView = [[MMAlertView alloc] initWithInputTitle:@"Title" detail:@"" placeholder:palceHolder handler:^(NSString *text) {
// 想在点击确定的的时候消失。
}];
[inputView show];

串神,我在使用有输入框的 AlertView 时,点击取消时会自动消失,点击确定的时候不消失。想在 block 回调的时候调用消失方法,但是此时实例还没初始化,又不能捕获到自己的实例。

暂时的处理是,直接在源码里面 self.inputHandler() 前调了下 hide ....

不知道有没有什么其他的解决办法?

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

No branches or pull requests

1 participant