We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(void)addToKeyWindow { if (!self.superview) { UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; [keyWindow addSubview:self];
} }
(void)commonInit { [self addSubview:self.dimBackgroundView]; [self addSubview:self.shareSheetView];
self.frame = CGRectMake(0, 0, ZY_ScreenWidth, ZY_ScreenHeight);
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(hide) name:ZY_HideNotification object:nil]; }
是把 [self addSubview:self.dimBackgroundView]; [self addSubview:self.shareSheetView]; 俩行代码 , 挪到了 commonInit 里面就可以了
The text was updated successfully, but these errors were encountered:
(void)addToKeyWindow { if (!self.superview) { UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; [keyWindow addSubview:self]; } } (void)commonInit { [self addSubview:self.dimBackgroundView]; [self addSubview:self.shareSheetView]; self.frame = CGRectMake(0, 0, ZY_ScreenWidth, ZY_ScreenHeight); [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(hide) name:ZY_HideNotification object:nil]; } 是把 [self addSubview:self.dimBackgroundView]; [self addSubview:self.shareSheetView]; 俩行代码 , 挪到了 commonInit 里面就可以了
(void)addToKeyWindow { if (!self.superview) { UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; [keyWindow addSubview:self]; } }
(void)commonInit { [self addSubview:self.dimBackgroundView]; [self addSubview:self.shareSheetView]; self.frame = CGRectMake(0, 0, ZY_ScreenWidth, ZY_ScreenHeight); [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(hide) name:ZY_HideNotification object:nil]; }
按你的处理正常了,非常感谢。
Sorry, something went wrong.
No branches or pull requests
(void)addToKeyWindow
{
if (!self.superview) {
UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow;
[keyWindow addSubview:self];
}
}
(void)commonInit
{
[self addSubview:self.dimBackgroundView];
[self addSubview:self.shareSheetView];
self.frame = CGRectMake(0, 0, ZY_ScreenWidth, ZY_ScreenHeight);
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(hide) name:ZY_HideNotification object:nil];
}
是把 [self addSubview:self.dimBackgroundView];
[self addSubview:self.shareSheetView];
俩行代码 , 挪到了 commonInit 里面就可以了
The text was updated successfully, but these errors were encountered: