-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
-
(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 里面就可以了
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels