ZUUIRevealControler: problem with image size of RearViewContriller while working on iPhone (Retina 4Inch)

I am having a problem with ZUUIRevealController.

QUESTION:

While working in the iPhone simulator (Retina 4Inch), the height [rearViewController View] is still

frame = (0 0; 320 480) 

instead

 frame = (0 0; 320 568). 

Thus, the rear view seems truncated.

But this problem does not exist for frontViewController.

This is how I added my backViewController and frontViewController

 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; 

Has anyone encountered such a problem? Any help was appreciated.

+4
source share
1 answer

I get it. We have to keep the front and back VC as a 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]; 
0
source

Source: https://habr.com/ru/post/1440304/


All Articles