diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2014-06-11 23:37:01 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2014-06-11 23:37:01 -0700 |
commit | 1c28763e8f130cbaa2c5652a19bfe16215e50e21 (patch) | |
tree | 8535f0256edfd8e47b580c4480633da7b105ad16 | |
parent | 2464fd3885c24274ea18cc4d61557d8470b81cc8 (diff) |
Some minor adjustments to sort of support iOS 2.x.
-rw-r--r-- | MobileCydia.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 9e305af..8306fde 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<UILocalizedIndexedCollation> collation([[[UILocalizedIndexedCollation alloc] initWithDictionary:dictionary] autorelease]); + _H<UILocalizedIndexedCollation> collation([[[$UILocalizedIndexedCollation alloc] initWithDictionary:dictionary] autorelease]); CollationLocale_ = MSHookIvar<NSLocale *>(collation, "_locale"); |