Under normal circumstances, when displaying a new UIViewController
it should automatically rotate to portrait if it only supports portrait and the app is currently in landscape. This only applies to newer versions of the OS (but I assume you're probably running on 3.1.3?).
In any case, to force the app into portrait:
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationPortrait animated:YES];