CROHomeCRAAddController *temp =[[CROHomeCRAAddControlleralloc] init];
temp.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
temp.modalPresentationStyle = UIModalPresentationFormSheet;
[self.parentViewController.parentViewControllerpresentViewController:temp animated:YEScompletion:^(){
}];
temp.view.superview.frame = CGRectMake(0, 0, 824, 600);
在CROHomeCRAAddController的类中,加入
- (void)viewWillLayoutSubviews{
[superviewWillLayoutSubviews];;
// self.view.frame = CGRectMake(-130, -30, 824, 600);
self.view.frame = CGRectMake(0, 0, 824, 600);
self.view.superview.frame = CGRectMake(100, 30, 824, 600);
self.view.superview.backgroundColor = [UIColorredColor];
}
可以实现!!!ios7