]> git.saurik.com Git - cydia.git/blobdiff - iPhonePrivate.h
Use setViewControllers: instead of setViewControllers:animated: with animated:NO.
[cydia.git] / iPhonePrivate.h
index f60e394678e2ef4d45930f969a1c83bece9e138b..678b8b62054f7f15e6b00ad1bd0c2fedc459c394 100644 (file)
@@ -1,4 +1,5 @@
 #ifndef CYDIA_UIKITPRIVATE_H
 #ifndef CYDIA_UIKITPRIVATE_H
+#define CYDIA_UIKITPRIVATE_H
 
 // #include <*> {{{
 #include <GraphicsServices/GraphicsServices.h>
 
 // #include <*> {{{
 #include <GraphicsServices/GraphicsServices.h>
@@ -294,11 +295,38 @@ typedef enum {
 @end
 // }}}
 
 @end
 // }}}
 
-// extern *; {{{
-extern "C" CFStringRef const kGSDisplayIdentifiersCapability;
+// #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER {{{
+#ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
+#define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
+
+typedef enum {
+    UIModalPresentationFullScreen,
+    UIModalPresentationPageSheet,
+    UIModalPresentationFormSheet,
+    UIModalPresentationCurrentContext,
+} UIModalPresentationStyle;
+
+#define kSCNetworkReachabilityFlagsConnectionOnTraffic kSCNetworkReachabilityFlagsConnectionAutomatic
+#define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5)
+
+@class NSUndoManager;
+@class UIPasteboard;
+
+@interface UIActionSheet (iPad)
+- (void) showFromBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated;
+@end
+
+@interface UIViewController (iPad)
+- (void) setModalPresentationStyle:(UIModalPresentationStyle)style;
+@end
 
 
-extern "C" float const UIWebViewGrowsAndShrinksToFitHeight;
-extern "C" float const UIWebViewScalesToFitScale;
+#endif//AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
+// }}}
+
+// extern *; {{{
+extern CFStringRef const kGSDisplayIdentifiersCapability;
+extern float const UIWebViewGrowsAndShrinksToFitHeight;
+extern float const UIWebViewScalesToFitScale;
 // }}}
 // extern "C" *(); {{{
 extern "C" UIImage *_UIImageWithName(NSString *name);
 // }}}
 // extern "C" *(); {{{
 extern "C" UIImage *_UIImageWithName(NSString *name);