拆分视图控制器的详细视图在ios 4.2中没有改变它的大小? [英] Detail View of Split view controller doesnt changing its size in ios 4.2?
本文介绍了拆分视图控制器的详细视图在ios 4.2中没有改变它的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的iPad应用程序中,我使用了 UISplitViewController
其中主视图包含表视图,而详细视图包含 UIViewController
。按钮事件详细信息视图来自主视图,代码如下所示。此代码在iPad 3.2上运行良好,但不适用于ios 4.2。
In my iPad application, i have used UISplitViewController
where master view contains table view while detail view holds UIViewController
. On button event detail view comes over master view, code is mentioned following. This code works fine on iPad 3.2 but not working on ios 4.2.
UIViewController *leftUIV = [appDelegate.splitViewController.viewControllers objectAtIndex:0];
UIViewController *rightUIV = [appDelegate.splitViewController.viewControllers objectAtIndex:1];
CGRect rectMaster = leftUIV.view.frame;
CGRect rectDetail = rightUIV.view.frame;
rectMaster.size.width = 0;
rectDetail.size.width = 1024;
rectDetail.origin.x = 0;
[leftUIV.view setFrame:rectMaster];
[rightUIV.view setFrame:rectDetail];
请帮忙,我该如何解决?
Please help, How should I solve it?
推荐答案
最后在网站上得到答案点击此处
Finally got the answer on site Click here
感谢 - Alice Bevan和McGregor
Thanks to - Alice Bevan and McGregor
这篇关于拆分视图控制器的详细视图在ios 4.2中没有改变它的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文