Changeset 425
- Timestamp:
- 06/28/09 15:29:43 (4 years ago)
- Location:
- apps/iphone/my.tel/trunk/Classes
- Files:
-
- 2 modified
-
RecordCell.m (modified) (2 diffs)
-
RecordViewController.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
apps/iphone/my.tel/trunk/Classes/RecordCell.m
r265 r425 35 35 switchEnabled = nil; 36 36 37 self.accessoryType = UITableViewCellAccessoryD etailDisclosureButton;37 self.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 38 38 39 39 UILabel *label = [[UILabel alloc] initWithFrame:CGRectZero]; … … 109 109 labelRect.size.height = labelLabel.font.pointSize+2; 110 110 labelRect.size.width = 120; 111 labelRect.origin.x = contentRect.origin.x + contentRect.size.width - labelRect.size.width +30;111 labelRect.origin.x = contentRect.origin.x + contentRect.size.width - labelRect.size.width; 112 112 labelLabel.frame = labelRect; 113 113 labelLabel.textAlignment = UITextAlignmentRight; -
apps/iphone/my.tel/trunk/Classes/RecordViewController.m
r423 r425 154 154 155 155 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 156 NSDictionary *theRecord = [self selectRecordInSetUsingId:[[uiArray objectAtIndex:indexPath.row] 157 objectForKey:@"apiId"]]; 156 158 [tableView deselectRowAtIndexPath:indexPath animated:NO]; 159 [self displayEditingForRecord:theRecord]; 157 160 } 158 161 … … 170 173 // Not supported here 171 174 } 172 }173 174 - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath {175 NSDictionary *theRecord = [self selectRecordInSetUsingId:[[uiArray objectAtIndex:indexPath.row]176 objectForKey:@"apiId"]];177 [self displayEditingForRecord:theRecord];178 175 } 179 176








