UITextField - 堆积

问题描述:

如何创建“堆叠的”UITextFields,如附图所示?UITextField - 堆积

enter image description here

这看起来像一个设置为 “分组”

- (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