Created
November 5, 2015 18:21
-
-
Save ivangodfather/b11571aa654040025406 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CarWireframe { | |
| private var storyboard : UIStoryboard { | |
| return UIStoryboard(name: "Main", bundle: NSBundle.mainBundle()) | |
| } | |
| func getRootNavigationController() -> UINavigationController { | |
| let rootViewController = storyboard.instantiateViewControllerWithIdentifier("CarListViewControllerIdentifier") as! CarListViewController | |
| rootViewController.carListPresenter = ServiceLocator.instance.getPresenterForCarList(rootViewController, wireframe: self) | |
| return UINavigationController(rootViewController: rootViewController) | |
| } | |
| func goToDetailCar() { | |
| let detailCarVC = storyboard.instantiateViewControllerWithIdentifier("DetailCarVCIdentifier") | |
| getRootNavigationController().pushViewController(detailCarVC, animated: true) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment