-2
如何創建「堆疊的」UITextFields,如附圖所示?UITextField - 堆積
如何創建「堆疊的」UITextFields,如附圖所示?UITextField - 堆積
這看起來像一個設置爲 「分組」
- (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