Developer Area

Changeset 425

Show
Ignore:
Timestamp:
06/28/09 15:29:43 (5 years ago)
Author:
henri
Message:

Fix for OS 3.0: changed accessory in naptr cell

Location:
apps/iphone/my.tel/trunk/Classes
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/my.tel/trunk/Classes/RecordCell.m

    r265 r425  
    3535                switchEnabled = nil; 
    3636                 
    37                 self.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; 
     37                self.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 
    3838                 
    3939        UILabel *label = [[UILabel alloc] initWithFrame:CGRectZero]; 
     
    109109        labelRect.size.height = labelLabel.font.pointSize+2; 
    110110        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; 
    112112        labelLabel.frame = labelRect; 
    113113        labelLabel.textAlignment = UITextAlignmentRight; 
  • apps/iphone/my.tel/trunk/Classes/RecordViewController.m

    r423 r425  
    154154 
    155155 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 
     156         NSDictionary *theRecord = [self selectRecordInSetUsingId:[[uiArray objectAtIndex:indexPath.row] 
     157                                                                                                                           objectForKey:@"apiId"]]; 
    156158         [tableView deselectRowAtIndexPath:indexPath animated:NO]; 
     159         [self displayEditingForRecord:theRecord]; 
    157160 } 
    158161 
     
    170173                // Not supported here 
    171174        } 
    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]; 
    178175} 
    179176 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us