Browse files

Removing warnings

  • Loading branch information...
1 parent 3b8dbbb commit 16b15dee15ab0dd12b9de0956a560c48b954b10a @deepwinter committed May 22, 2012
Showing with 6 additions and 11 deletions.
  1. +6 −11 Source/Views and Controllers/ProjectsTableViewController.m
View
17 Source/Views and Controllers/ProjectsTableViewController.m
@@ -103,6 +103,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
cell.textLabel.text = aProject;
if([currentProject isEqualToString: aProject]){
cell.accessoryType = UITableViewCellAccessoryCheckmark;
+ // cell.selected = YES;
+ // cell.selected = NO;
}
return cell;
@@ -149,25 +151,18 @@ - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)
#pragma mark - Table view delegate
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
+- (void)tableView:(UITableView *)currentTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
- // Navigation logic may go here. Create and push another view controller.
- /*
- <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
- // ...
- // Pass the selected object to the new view controller.
- [self.navigationController pushViewController:detailViewController animated:YES];
- */
RHDataModel * rhDataModel = [RHDataModel instance];
rhDataModel.project = (NSString *) [self.projects objectAtIndex: [indexPath row]];
- UITableViewCell * cell = [tableView cellForRowAtIndexPath:indexPath];
+ UITableViewCell * cell = [currentTableView cellForRowAtIndexPath:indexPath];
cell.accessoryType = UITableViewCellAccessoryCheckmark;
cell.selected = NO;
}
-- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath {
- UITableViewCell * cell = [tableView cellForRowAtIndexPath:indexPath];
+- (void)tableView:(UITableView *)currentTableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath {
+ UITableViewCell * cell = [currentTableView cellForRowAtIndexPath:indexPath];
cell.accessoryType = UITableViewCellAccessoryNone;
}

0 comments on commit 16b15de

Please sign in to comment.