It seems that whenever I delete the last two lines, I get what I assume is the behavior you are looking for.
CGSize size = CGSizeMake(650, 550);
ViewController *vc = [[ViewController alloc] initWithSize:size];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
nav.modalPresentationStyle = UIModalPresentationFormSheet;
nav.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:nav animated:YES];
I'm not sure exactly what you were trying to do with these two lines, but without them the point of view is centered.
source
share