Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded view doesn't resize on screen rotate when sidebar is used with NavigationController #26

Open
smfeest opened this issue Dec 18, 2013 · 1 comment

Comments

@smfeest
Copy link

smfeest commented Dec 18, 2013

I have set up a minimum test case of a iOS7 single view storyboard application where the view controller contains a single button that opens an instance of the sidebar as follows:

- (IBAction)menuButtonAction:(id)sender {
    NSArray *images = @[[UIImage imageNamed:@"gear"]];

    RNFrostedSidebar *callout = [[RNFrostedSidebar alloc] initWithImages:images];
    [callout show];
}

If I run the application and rotate the phone everything resizes correctly. However, if I then embed the view in a navigation controller and restart the application, the embedded view no longer resizes when I rotate the screen (as shown below).

sidebarrotate

I've tried replacing [callout show] with [callout showInViewController:self animated:YES]. This solves the resizing issue but causes the sidebar to appear behind the navigation bar which isn't desirable.

I am going to continue investigating, but I thought I'd post this first in case someone else has already experienced this problem.

@skull-squadron
Copy link

The easiest hack might be to dismiss the sidebar during a rotation. It might fix #37 as well.

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

No branches or pull requests

2 participants