You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,14 +70,13 @@ PPRevealSideViewController fully supports ARC *and* non-ARC modes out of the box
70
70
71
71
# Compatibility
72
72
73
-
The class if fully compatible from iOS 4 to iOS 7. Not tested yet on older versions like iOS 3, but there is no reasons it doesn't work.
74
-
Please note that this class use the new container methods of UIViewController since iOS 5. By using this class on iOS 4 for example, you need to be careful with rotation handling, and presentModalViewController stuff.
75
-
Some things you need to be aware on iOS 4 or older :
76
-
77
-
* the currentOrientation property is not passed to child controllers, so only the window rootViewController knows the currentOrientation. Always use the status bar orientation from UIApplication
78
-
* override willAnimateRotationToInterfaceOrientation method to relayout the subviews
79
-
* ALWAYS present modal view controller from reveal side view controller, not from the controller itself. Otherwise, you will see strange bug with memory warning and/or rotation (bad layout)
80
-
* There is no support on iOS 4 and older of hiding and showing status bar in the app. It's ok if the status bar is initially hidden or not
73
+
The class if fully compatible from iOS 7. I recently dropped support for previous version. So if needed, please grab a previous commit / version than [this one](https://github.com/ipup/PPRevealSideViewController/commit/6ae0c43278ec251c2d22c897d610d017bbd47dec).
74
+
75
+
## State preservation and restoration
76
+
PPReveal supports state preservation and restoration. All you need is to set a `restorationIdentifier` to all the controllers you want to restore, maybe a `restorationClass` and you're all set
77
+
78
+
## Status bar style / hidden
79
+
The status bar style and hidden are forwarded to the child controllers. If you want to remove this behavior, simply subclasse PPReveal and override both `childViewControllerForStatusBarStyle` and `childViewControllerForStatusBarHidden` to return `nil`.
0 commit comments