keyboard appearing late in the device
<p>i have a table view with a text field in the table view cell and i set the text field become first responder and  the code is as follows </p>

<p>`  (in view did load )</p>

<p>tableview = [[UITableView alloc] initWithFrame:CGRectMake (0, 80, 320, 250) style:UITableViewStyleGrouped];
    tableview.backgroundColor = [UIColor clearColor];<br>
    tableview.delegate = self;
    tableview.dataSource = self;
    tableview.sectionHeaderHeight=2;
    tableview.sectionFooterHeight=2;
    [self.view addSubview:tableview]; </p>

<pre><code>textfield = [[UITextField alloc] initWithFrame:CGRectMake(20, 10, 285, 25)];
[textfield becomeFirstResponder];
textfield.textAlignment = UITextAlignmentLeft;
textfield.returnKeyType = UIReturnKeyDone;
textfield.clearButtonMode = UITextFieldViewModeWhileEditing;
textfield.autocapitalizationType = UITextAutocapitalizationTypeSentences;
textfield.autocorrectionType = UITextAutocorrectionTypeNo;
textfield.backgroundColor=[UIColor clearColor];
[textfield setDelegate:self];

in table view cell for row at index path 
</code></pre>

<p>-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *MyIdentifier = @"MyIdentifier";</p>

<pre><code>UITableViewCell *cell = (UITableViewCell *)[tableview dequeueReusableCellWithIdentifier:MyIdentifier];
if (cell == nil) 
{
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:MyIdentifier] autorelease];
}

cell.selectionStyle=UITableViewCellSelectionStyleNone;
//cell.textLabel.textColor=[UIColor customisedmediumgreyColor];
//cell.textLabel.font=[UIFont boldHelvetica14];
//cell.textLabel.frame=CGRectMake(20, 10, 150, 25);
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
switch (indexPath.section) {
    case 0:

        [cell addSubview:textfield];
        break;

    default:
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        button.backgroundColor = [UIColor clearColor];
        UIImage *image=[UIImage imageWithContentsOfFile:[IMBundle fullBundlePath:@"Images.bundle/Images/EnhancedMobileLists/clock_deselected.png"]];
        CGRect frame = CGRectMake(220.0, 8.0, 25, 25);
        button.frame = frame;
        [button setBackgroundImage:image forState:UIControlStateNormal];
        [cell.contentView addSubview:button];
        if([ItemsArray count] &gt; 0)
        {
            LookupListInfo *itemListInfo = (LookupListInfo *)[ItemsArray objectAtIndex:indexPath.section-1];
            //cell.textLabel.text = itemListInfo.lookupListName;
            UILabel *label=[[UILabel alloc]init];
            label.frame=CGRectMake(22, 10, 150, 25);
            label.textColor=[UIColor customisedmediumgreyColor];
            label.font=[UIFont boldHelvetica14];
            label.text=itemListInfo.lookupListName;
            [cell.contentView addSubview:label];
        }

        break;
}

return cell;
</code></pre>

<p>}</p>

<p>`
the code is working fine in simulator but when we run in device key board is appearing a bit late for the first time.</p>

<p>can any one tell me where i age getting wrong .</p>

<p>thanks in advance....</p>
