uimodalpresentationformsheet resize ios7
2014-04-30 12:12
309 查看
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
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
相关文章推荐
- iOS ipad开发 UIModalPresentationFormSheet模式的VC 无法关闭键盘解决方法
- testVC.modalPresentationStyle = UIModalPresentationFormSheet; 更改 VC大小
- UIModalPresentationFormSheet风格下的键盘隐藏
- UIModalPresentationFormSheet 改变加变大小
- 关于ios 8 7 下的模态窗口大小的控制 代碼+場景(mainstoryboard)( Resizing UIModalPresentationFormSheet )
- iPad UIModalPresentationFormSheet 键盘不隐藏
- presentModalViewController使用 UIModalPresentationFormSheet,无法改变frame大小
- presentModalViewController使用 UIModalPresentationFormSheet,无法改变frame大小
- IPhone开发 IPad使用UIModalPresentationFormSheet时隐藏键盘
- IPad使用UIModalPresentationFormSheet时隐藏键盘
- iOS UIModalPresentationFormSheet风格下的键盘隐藏
- UIModalPresentationFormSheet resizing view
- ipad开发 控制器模态显示(UIModalPresentationFormSheet)实现点击UIDimmingView回收键盘
- UIModalPresentationFormSheet模式下隐藏键盘
- Ipad项目中用到的UIModalPresentationFormSheet,点击阴影部分dismiss 当前presented的controller
- 关于UIActionSheet的兼容ios7时界面卡住和崩溃的问题
- UIModalPresentationStyle和UIModalTransitionStyle
- UIModalPresentationStyle和UIModalTransitionStyle
- 弹出模态ViewController、UIModalPresentationStyle和UIModalTransitionStyle
- What is difference between UIModalTransitionStyle and UIModalPresentationStyle ?