Skip to content

Commit 5dddf5b

Browse files
committed
Appear Disappear corrections iOS 4
1 parent 3d8a702 commit 5dddf5b

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

PPRevealSideViewController/PPRevealSideviewController/PPRevealSideViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ - (void) pushViewController:(UIViewController *)controller onDirection:(PPReveal
207207
UIViewController *oldController = [_viewControllers objectForKey:directionNumber];
208208
if (controller != oldController) {
209209
[oldController.view removeFromSuperview];
210+
if ([[[UIDevice currentDevice] systemVersion] floatValue] < 5.0) [oldController viewDidDisappear:animated];
210211
}
211212
[_viewControllers setObject:controller forKey:directionNumber];
212213

0 commit comments

Comments
 (0)