1
iOS7和xCode5。爲什麼我的自由形式ModalViewController總是顯示全尺寸?
我創建了一個UIViewController
用XIB1,
1,我未選中選項 「使用自動佈局」; 2,將大小更改爲「自由格式」; 3,將狀態欄更改爲「無」。
然後我調整我的視圖中XIB(例如如[280,110]),但是當我顯示的ViewController,
MyViewController *sellDialog = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:[NSBundle mainBundle]];
[self presentViewController:MyDialog animated:YES completion:^{
}];
視圖總是全屏幕大小。
謝謝加文,我在哪裏可以找到相關信息? like tutorial,youtube ... –
你可以嘗試在Google上搜索「容器視圖控制器教程」,你應該能夠找到一些東西。否則,只是「容器視圖控制器」的谷歌搜索至少應該爲您提供創建示例和其他相關信息。 – Gavin
非常感謝你! –