MJPopupViewController icon indicating copy to clipboard operation
MJPopupViewController copied to clipboard

About viewDidAppear method

Open michael2043 opened this issue 11 years ago • 1 comments

When popup with a UIViewContrller,viewDidAppear can be executed twice.When I see the sourcecode like this

[UIView animateWithDuration:kPopupModalAnimationDuration animations:^{ [self.mj_popupViewController viewWillAppear:NO]; self.mj_popupBackgroundView.alpha = 0.5f; popupView.alpha = 1.0f; } completion:^(BOOL finished) { [self.mj_popupViewController viewDidAppear:NO]; }];

why in completion "[self.mj_popupViewController viewDidAppear:NO];" can be call

michael2043 avatar Apr 12 '13 07:04 michael2043

I noticed this too that viewDidAppear is called twice. Any rectification lately?

edward-lay avatar Dec 12 '13 06:12 edward-lay