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

Support controllers defined in storyboard #99

Closed
Doc1faux opened this issue Apr 4, 2016 · 1 comment
Closed

Support controllers defined in storyboard #99

Doc1faux opened this issue Apr 4, 2016 · 1 comment
Assignees
Milestone

Comments

@Doc1faux
Copy link
Contributor

Doc1faux commented Apr 4, 2016

Currently, controllers defined in storyboard are not configured as in cobalt.conf and no page is loaded.
Investigate and enhance Cobalt to support controllers defined in storyboard.

@Doc1faux Doc1faux self-assigned this Apr 4, 2016
@Doc1faux Doc1faux added this to the 0.5.1 milestone Apr 4, 2016
@Doc1faux Doc1faux closed this as completed Apr 4, 2016
@Doc1faux
Copy link
Contributor Author

Doc1faux commented Apr 4, 2016

For controllers defined in storyboard to work, override its initWithCoder: method as below:

- (id)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super initWithCoder:aDecoder]) {
        [self initWithPage:@"myPage.html"
             andController:@"myController"];
    }

    return self;
}

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

No branches or pull requests

1 participant