SettingViewController *settingViewController = [[SettingViewController alloc] initWithStyle:UITableViewStyleGrouped];
UINavigationController *settingNav = [[UINavigationController alloc] initWithRootViewController:settingViewController];
settingNav.modalPresentationStyle = UIModalPresentationFormSheet ;
settingNav.modalTransitionStyle = UIModalTransitionStyleCoverVertical ;
[self presentModalViewController:settingNav animated:YES] ;
//下面设置presentModalViewController的大小
settingNav.view.superview.frame = CGRectMake(0, 0, 512, 374);
settingNav.view.superview.center = self.view.center;
//这句有时候获取到的并不是正中,我的情况就是,然后用了下面的这个固定坐标
settingNav.view.superview.center = CGPointMake(512,374);
btw,用这样生成的就是像新浪微博HD,QQ HD等等软件的那个系统设置页面。同时带有从底部到屏幕正中的动画。