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

RBStoryboardLink causes viewDidLoad to be called before -prepareSegue:sender: has a chance to run #47

Open
fatuhoku opened this issue Nov 20, 2014 · 0 comments

Comments

@fatuhoku
Copy link

When using a show segue I would like to finish creating all view elements by the end of -viewDidLoad, but I need to create components

screen shot 2014-11-20 at 09 28 03

The reason is that the scene is being asked about its -preferredContentSize, which forces the view to load.

- (void)awakeFromNib {
    ...
    // Grabs the popover properties.
    self.preferredContentSize = scene.preferredContentSize;    // HERE!
    self.modalInPopover = scene.modalInPopover;
    ...
}
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

1 participant