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

[iOS7] Crashes when using Alloy and setLeftWindow #20

Closed
atypical opened this issue Oct 30, 2013 · 3 comments
Closed

[iOS7] Crashes when using Alloy and setLeftWindow #20

atypical opened this issue Oct 30, 2013 · 3 comments
Labels

Comments

@atypical
Copy link

Hi there,

First - the module is a gem, thank you.

The issue I'm running into is using the module in iOS7 and with Alloy.

This code works brilliantly in iOS6, but not in 7:

drawer.setLeftWindow(Alloy.createController("leftDrawer").getView());

Basically, I start the whole thing in my alloy.js and set default views. After a user logs in via the app, I need to rewrite the left drawer to show a nav. Works perfectly in iOS6, but in iOS7 the simulator just fails when I get to the point of setting the left drawer.

The console tells me almost nothing and in Xcode, all it points to is the setLeftWindow method.

Any ideas? What info can I provide to help?

Thank you!
//MD

@viezel
Copy link
Owner

viezel commented Oct 30, 2013

Yes, this is a known issue.

Have look at #2

@atypical
Copy link
Author

For Alloy - the solve seems to be setting drawer views as < Window > and the center or main view as: < NavigationWindow platform="ios" id="" > < Window id="loginModal" > < /Window > < /NavigationWindow >

Any views you load into the center/main view should be < NavigationWindow > and drawer views should just be < Window >

//MD

@chrisribe
Copy link

One solution is to set holder windows on init and simple add and remove the views from them. Workaround but....

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

No branches or pull requests

3 participants