From 1c28763e8f130cbaa2c5652a19bfe16215e50e21 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 11 Jun 2014 23:37:01 -0700 Subject: [PATCH] Some minor adjustments to sort of support iOS 2.x. --- MobileCydia.mm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 9e305afe..8306fdee 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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 collation([[[UILocalizedIndexedCollation alloc] initWithDictionary:dictionary] autorelease]); + _H collation([[[$UILocalizedIndexedCollation alloc] initWithDictionary:dictionary] autorelease]); CollationLocale_ = MSHookIvar(collation, "_locale"); -- 2.50.0