]> git.saurik.com Git - cydia.git/commitdiff
Cells, not tables for disabling selection -- finish 2.0 backport.
authorGrant Paul <chpwn@chpwn.com>
Sun, 17 Oct 2010 20:47:18 +0000 (13:47 -0700)
committerGrant Paul <chpwn@chpwn.com>
Sun, 17 Oct 2010 20:47:18 +0000 (13:47 -0700)
Cydia.mm

index 936856dbaf73b03ff0404e25f9f57d07f4bbb24a..c1173ebfb24a913a027f362eade79fc511ec7392 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -7360,7 +7360,6 @@ freeing the view controllers on tab change */
 
         table_ = [[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStyleGrouped];
         [table_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
 
         table_ = [[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStyleGrouped];
         [table_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
-        [table_ setAllowsSelection:NO];
         [[self view] addSubview:table_];
 
         subscribedSwitch_ = [[objc_getClass("UISwitch") alloc] initWithFrame:CGRectMake(0, 0, 50, 20)];
         [[self view] addSubview:table_];
 
         subscribedSwitch_ = [[objc_getClass("UISwitch") alloc] initWithFrame:CGRectMake(0, 0, 50, 20)];
@@ -7374,10 +7373,12 @@ freeing the view controllers on tab change */
         subscribedCell_ = [[UITableViewCell alloc] init];
         [subscribedCell_ setText:UCLocalize("SHOW_ALL_CHANGES")];
         [subscribedCell_ setAccessoryView:subscribedSwitch_];
         subscribedCell_ = [[UITableViewCell alloc] init];
         [subscribedCell_ setText:UCLocalize("SHOW_ALL_CHANGES")];
         [subscribedCell_ setAccessoryView:subscribedSwitch_];
+        [subscribedCell_ setSelectionStyle:UITableViewCellSelectionStyleNone];
 
         ignoredCell_ = [[UITableViewCell alloc] init];
         [ignoredCell_ setText:UCLocalize("IGNORE_UPGRADES")];
         [ignoredCell_ setAccessoryView:ignoredSwitch_];
 
         ignoredCell_ = [[UITableViewCell alloc] init];
         [ignoredCell_ setText:UCLocalize("IGNORE_UPGRADES")];
         [ignoredCell_ setAccessoryView:ignoredSwitch_];
+        [ignoredCell_ setSelectionStyle:UITableViewCellSelectionStyleNone];
 
         [table_ setDataSource:self];
         [table_ setDelegate:self];
 
         [table_ setDataSource:self];
         [table_ setDelegate:self];