Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Fixed extra status bar height added to rear view #50

Closed
wants to merge 1 commit into from

Conversation

bbshih
Copy link

@bbshih bbshih commented Jun 17, 2012

@drewish
Copy link

drewish commented Jul 2, 2012

I can confirm that this fixed the issue for me as well.

@wayneljw
Copy link

Thanks bbshih for the solution. But it has an issue for me.
Say I have a tableview setup for the rearview, and rearViewRevealWidth is set to 260.0
All my table view cells have accessories which are disclosure indicator.
The accessories could be hidden behind the front view if we declare the frame this way.

So I use the following solution:

CGRect rearViewFrame = rearViewController.view.frame;
CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame];
rearViewController.view.frame = CGRectMake(0.0, 0.0, rearViewFrame.size.width, rearViewFrame.size.height - statusBarFrame.size.height);

This solution is evolved from bbshih's solution. But I don't have iOS6 installed, I cannot test if this would work on iOS6.

I will test for iOS 6 the 1st thing when it is released.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants