iOS 7 Adapting Size for master and detail #88

Open
phynet opened this Issue Sep 19, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@phynet

phynet commented Sep 19, 2013

I was having a problem with both views sizes (master and detail) in iOS 7, calculating the height of the view substracting the size of the status bar isn't the right way anymore, I've added in method:

  • (CGSize)splitViewSizeForOrientation:(UIInterfaceOrientation)theOrientation

This line:

if([[[UIDevice currentDevice] systemVersion] intValue] < 7)
    height -= statusBarHeight;

It's working, although I believe there's got to be a better way. ¿?

@bestimmaa

This comment has been minimized.

Show comment Hide comment
@bestimmaa

bestimmaa Sep 20, 2013

Thanks for pointing out the right position in the code, I experienced the same issue and just wanted to search for this. I think it safe to assume that the status bar overlaps the view controller because there is no other behavior available in iOS7.

Thanks for pointing out the right position in the code, I experienced the same issue and just wanted to search for this. I think it safe to assume that the status bar overlaps the view controller because there is no other behavior available in iOS7.

bestimmaa pushed a commit to bestimmaa/MGSplitViewController that referenced this issue Sep 20, 2013

Christoph Halang
added dirty hack (pointed out by phynet as issue #88 on the original …
…branch) for fixing status bar bug with iOS 7
@fechu

This comment has been minimized.

Show comment Hide comment
@fechu

fechu Sep 20, 2013

Check out this version of the fix. It looks a little bit less hacked. :-D

kurtzmarc/MGSplitViewController@94b33c7

fechu commented Sep 20, 2013

Check out this version of the fix. It looks a little bit less hacked. :-D

kurtzmarc/MGSplitViewController@94b33c7

bestimmaa pushed a commit to bestimmaa/MGSplitViewController that referenced this issue Jul 5, 2014

Christoph Halang
added dirty hack (pointed out by phynet as issue #88 on the original …
…branch) for fixing status bar bug with iOS 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment