summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-10-17 13:47:18 -0700
committerGrant Paul <chpwn@chpwn.com>2010-10-17 13:47:18 -0700
commit33a97e4f7077bf3c9217ffe1e49167161bbce401 (patch)
tree7f224718aca457b397ce07dc4529d566d854b43f
parent4136279877fa079d23be30947eeb1988c710dd9f (diff)
Cells, not tables for disabling selection -- finish 2.0 backport.
-rw-r--r--Cydia.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 936856d..c1173eb 100644
--- 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_ setAllowsSelection:NO];
[[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_ setSelectionStyle:UITableViewCellSelectionStyleNone];
ignoredCell_ = [[UITableViewCell alloc] init];
[ignoredCell_ setText:UCLocalize("IGNORE_UPGRADES")];
[ignoredCell_ setAccessoryView:ignoredSwitch_];
+ [ignoredCell_ setSelectionStyle:UITableViewCellSelectionStyleNone];
[table_ setDataSource:self];
[table_ setDelegate:self];