gpt4 book ai didi

ios6 - ZUUIRevealControler : Issue in size of rearViewContriller's View While running in iPhone(Retina 4Inch)

转载 作者:行者123 更新时间:2023-12-01 06:38:30 26 4
gpt4 key购买 nike

我遇到了 ZUUIRevealController 的问题。

问题:

在 iPhone (Retina 4Inch) 模拟器中运行时 [rearViewController View] 的高度仍然是

frame = (0 0; 320 480)

代替
frame = (0 0; 320 568).

所以后 View 似乎被截断了。

但是frontViewController 不存在这个问题。

这是我添加后 View Controller 和前 View Controller 的方法
viewCont1 *frontViewController = [[viewCont1 alloc]initWithNibName:@"viewCont1" bundle:nil];

navigationController = [[UINavigationController alloc] initWithRootViewController:frontViewController];

viewCont2 *rearViewController = [[viewCont1 alloc] initWithNibName:@"viewCont1" bundle:nil];

revealController = [[RevealController alloc] initWithFrontViewController:navigationController rearViewController:rearViewController];

revealController.delegate = rearViewController;

有人遇到过这样的问题吗??
任何帮助表示赞赏。

最佳答案

我想通了。我们必须将前后VC都保留为navigationController

frontVc *frontViewController = [[frontVc alloc]initWithNibName:@"frontVc" bundle:nil];

frontNavigationController = [[UINavigationController alloc] initWithRootViewController:frontViewController];

rearVc *rearViewController = [[rearVc alloc] initWithNibName:@"rearVc" bundle:nil];

rearNavigationController = [[UINavigationController alloc] initWithRootViewController:rearViewController];

revealController = [[RevealController alloc] initWithFrontViewController:frontNavigationController rearViewController:rearNavigationController];

关于ios6 - ZUUIRevealControler : Issue in size of rearViewContriller's View While running in iPhone(Retina 4Inch),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12935776/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com