Tom*_*ren 3 model-view-controller ipad
我试图在iPad上使用presentModalViewController显示登录屏幕.
LoginFormController *controller = [[[LoginFormController alloc] initWithNibName:@"LoginFormView" bundle:nil] autorelease];
[controller setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[controller setModalPresentationStyle:UIModalPresentationFormSheet];
[self controller:loginFormController animated:YES];
Run Code Online (Sandbox Code Playgroud)
无论我将视图设置为Interface Builder的大小,它总是调整到大约540x620.但登录界面只不过是两个文本字段和一个按钮.所以我只需要460x240.
有人知道调整大小的方法吗?
| 归档时间: |
|
| 查看次数: |
10736 次 |
| 最近记录: |