-
Notifications
You must be signed in to change notification settings - Fork 259
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
Comments
同问 |
加上 self.zh_popupController.layoutType 的设置就可以了。。。不知道为啥。。没仔细看 |
上面回复不能完全解决问题,需要设置 self.zh_popupController.slideStyle = zhPopupSlideStyleFade; 属性才行,self.zh_popupController.layoutType 属性默认就是Center 故不需要再次设置。 |
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];
}
}
};
|
原因就是alpha 0 问题。上面这位仁兄,可以解决问题。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
只能弹出来一次 不知道你们遇到这个问题没
The text was updated successfully, but these errors were encountered: