2011-10-04 65 views

回答

6

這看起來像一個設置爲 「分組」

0
- (UITableViewCell *)tableView:(UITableView *)tableView 
    cellForRowAtIndexPath:(NSIndexPath *)indexPath 
{ 
    UITextField *myTxtField = [[UITextField alloc]init]; 
    [TxtUserID setFont:[UIFont fontWithName:@"Verdana" size:15]]; 
    [TxtUserID setFrame:CGRectMake(50, 100, 20, 10)]; 
    [TxtUserID setBorderStyle:UITextBorderStyleRoundedRect]; 
    [cell addSubview:myTxtField]; 
    cell.accessoryView = myTxtField; 
} 

Hope this will help you out 
風格一個UITableView