]> git.saurik.com Git - cydia.git/commitdiff
Some minor adjustments to sort of support iOS 2.x.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 12 Jun 2014 06:37:01 +0000 (23:37 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 12 Jun 2014 06:37:01 +0000 (23:37 -0700)
MobileCydia.mm

index 9e305afe1db14e2758bd1a221d8a3a1f7cf23b40..8306fdee7e94d51a1b3d0f0106e72254ce8cdb0c 100644 (file)
@@ -9864,7 +9864,9 @@ _trace();
     emulated_ = [[[CyteTabBarController alloc] init] autorelease];
     [emulated_ setViewControllers:[NSArray arrayWithObject:navigation]];
     [emulated_ setSelectedIndex:0];
-    [emulated_ concealTabBarSelection];
+
+    if ([emulated_ respondsToSelector:@selector(concealTabBarSelection)])
+        [emulated_ concealTabBarSelection];
 
     if ([window_ respondsToSelector:@selector(setRootViewController:)])
         [window_ setRootViewController:emulated_];
@@ -10228,7 +10230,7 @@ int main(int argc, char *argv[]) {
         NSString *path([bundle pathForResource:@"UITableViewLocalizedSectionIndex" ofType:@"plist"]);
         //path = @"/System/Library/Frameworks/UIKit.framework/.lproj/UITableViewLocalizedSectionIndex.plist";
         NSDictionary *dictionary([NSDictionary dictionaryWithContentsOfFile:path]);
-        _H<UILocalizedIndexedCollation> collation([[[UILocalizedIndexedCollation alloc] initWithDictionary:dictionary] autorelease]);
+        _H<UILocalizedIndexedCollation> collation([[[$UILocalizedIndexedCollation alloc] initWithDictionary:dictionary] autorelease]);
 
         CollationLocale_ = MSHookIvar<NSLocale *>(collation, "_locale");