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

zhPopupLayoutTypeCenter 这个属性只会弹出来一次,第二次就出不来了 #39

Open
gleeeli opened this issue Aug 16, 2018 · 5 comments

Comments

@gleeeli
Copy link

gleeeli commented Aug 16, 2018

只能弹出来一次 不知道你们遇到这个问题没

@Qu000
Copy link

Qu000 commented Nov 7, 2018

同问

@Qu000
Copy link

Qu000 commented Nov 7, 2018

加上 self.zh_popupController.layoutType 的设置就可以了。。。不知道为啥。。没仔细看

@jerrywangjing
Copy link

上面回复不能完全解决问题,需要设置 self.zh_popupController.slideStyle = zhPopupSlideStyleFade; 属性才行,self.zh_popupController.layoutType 属性默认就是Center 故不需要再次设置。

@jerrywangjing
Copy link

jerrywangjing commented Aug 6, 2019

void (^dismissCallback)(void) = ^() {

        //Jerry: 下面这句话会造成从center弹出后,第二次点击maskView不能再弹出contentView的问题,注销掉,暂时不知道作者意图。

        //_slideStyle = [objc_getAssociatedObject(self, @selector(fadeDismiss)) integerValue];

        [self removeSubviews];
        
        _isPresenting = NO;
        _popupView.transform = CGAffineTransformIdentity;
        if (nil != self.didDismiss) {
            self.didDismiss(self);
        } else {
            if ([self.delegate respondsToSelector:@selector(popupControllerDidDismiss:)]) {
                [self.delegate popupControllerDidDismiss:self];
            }
        }
    };

@jprothwell
Copy link

原因就是alpha 0 问题。上面这位仁兄,可以解决问题。

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