I am using a modal view to display content on the screen but keyboard covering some field
<p>I am displaying a modal dialog but the keyboard is covering some of the editable fields.  Is there any way of making the view move automatically...or must I manually write the code required to do this? i.e. change the location of the modal view etc</p>

<pre><code>UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:editViewController];
    navController.modalPresentationStyle = UIModalPresentationFormSheet;
    navController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;

    [editViewController release];

    [self presentModalViewController:navController animated:YES];
</code></pre>
