-
Notifications
You must be signed in to change notification settings - Fork 269
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
Multiple Storyboards and Typhoon #301
Comments
Hi @igrekde !! Don't use makeDefault Instead of calling [definition injectProperty:@selector(assembly) with:self]; This property can be of type
Although the app-delegate is not build by Typhoon, it sees you have a definition for the app delegate and injects accordingly. More info at plist integration . . this provides cleaner decoupling, testability, etc than calling You can use one factory throughout your app or use it to load other factories. Multiple Storyboards:
Is this clear? |
Also, if you're keen, we have a new autowiring feature that works nicely with Storyboards and view controllers. It will be officially released in the pending Typhoon 3.0, but is available on master now. Interested in trying? |
@jasperblues Thanks for your fast reply. makeDefault was used just for proof-of-concept.
So, the approach with declaring storyboards in the assembly doesn't suit my case - because I'm initializing the child storyboard in the segue class, so I don't understand what and where to inject. P.S. Autowire seems to be a great feature, and I'll definitely try it in my home project a bit later. |
@igrekde I think I misunderstood your question. @alexgarbarev will take it from here. |
Hi @igrekde,
|
Hi, @alexgarbarev , |
Hi!
I'm trying to implement multiple storyboards support in my app (different storyboards for each user story). I'm using custom segues (http://spin.atomicobject.com/2014/03/06/multiple-ios-storyboards/) for switching between different storyboards with Interface Builder. Besides, I don't want to be attached to Typhoon in my code, so calling:
instead of
is not a very good option. Besides using TyphoonStoryboard in my own code, I should directly call
[[TyphoonStartup initialFactory] makeDefault]
in AppDelegate (or create a new assembly simultaneously with a storyboard).So, I have a couple of questions:
The text was updated successfully, but these errors were encountered: