tos*_*osi 43 modal-dialog presentation ipad uimodalpresentationformsh
我想知道在使用时,我如何调整视图大小UIModalPresentationFormSheet的modalPresentationStyle,它看起来像它有一个固定的大小,所以我在想,如果有任何人都设法操纵从大小角度弹出视图.
所以有UIModalPresentationFormSheet一个固定的视图大小或完整的视图,我在介于两者之间.
tos*_*osi 71
MyModalViewController *targetController = [[[MyModalViewController alloc] init] autorelease];
targetController.modalPresentationStyle = UIModalPresentationFormSheet;
targetController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:targetController animated:YES];
// it is important to do this after presentModalViewController:animated:
targetController.view.superview.bounds = CGRectMake(0, 0, 200, 200);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
35270 次 |
| 最近记录: |