Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

TTCatalog sample: Fix label on the TTTableTextItem #346

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/TTCatalog/Classes/TableItemTestController.m
Expand Up @@ -61,7 +61,7 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
imageURL:remoteImage URL:@"tt://tableItemTest"],

@"Static Text",
[TTTableTextItem itemWithText:@"TTTableItem"],
[TTTableTextItem itemWithText:@"TTTableTextItem"],
[TTTableCaptionItem itemWithText:@"TTTableCaptionItem which wraps to several lines"
caption:@"Text"],
[TTTableSubtextItem itemWithText:@"TTTableSubtextItem"
Expand Down
4 changes: 4 additions & 0 deletions src/Three20UI/Sources/TTTableLinkedItemCell.m
Expand Up @@ -81,6 +81,10 @@ - (void)setObject:(id)object {

self.selectionStyle = TTSTYLEVAR(tableSelectionStyle);

} else if (item.delegate && item.selector) {
self.accessoryType = UITableViewCellAccessoryNone;
self.selectionStyle = TTSTYLEVAR(tableSelectionStyle);

} else {
self.accessoryType = UITableViewCellAccessoryNone;
self.selectionStyle = UITableViewCellSelectionStyleNone;
Expand Down
1 change: 1 addition & 0 deletions src/Three20UI/Sources/TTTableViewDelegate.m
Expand Up @@ -121,6 +121,7 @@ - (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)
TTOpenURL(item.URL);

} else if (item.delegate && item.selector) {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[item.delegate performSelector:item.selector withObject:object];
}

Expand Down
Empty file modified templates/InstallTemplates3.2.2.Command 100644 → 100755
Empty file.
Empty file modified templates/InstallTemplates3.2.4.Command 100644 → 100755
Empty file.
Empty file modified templates/InstallTemplates3.2.5.Command 100644 → 100755
Empty file.