Segueway not being found

I am using Swift 2.0. I have a Swift framework that also has a storyboard. My Swift app that is using this framework can display the view controller within the framework, but when a segueway within the framework is performed, the app crashes saying the segue "MySegue" cannot be found.

This code has worked under Obj C for years and Swift 1.x.


Any thoughts ?


Thank you,

Gene

Ok, for all who are interested, I got this to work.


The code remains the same as previously, I just had to make sure the storyboard in the framework was included in the resources used by the test application.


        let frameworkBundle = NSBundle(identifier: "com.marizack.MyFramework")
        let storyboard = UIStoryboard(name: "MyFramework", bundle: frameworkBundle)
        let controller = storyboard.instantiateViewControllerWithIdentifier("MyNavigationController") as! MyNavigationController
   
        controller.customTitle = self.myTextField.text
        controller.modalTransitionStyle = .FlipHorizontal
   
        self.presentViewController(controller, animated: true, completion: nil)


The entire workspage can be found at: http://www.marizack.com/Swift/SwiftFrameworks.zip


Enjoy !



Gene Backlin

iPhone and iPad App 24-Hour Trainer (2012 Wrox)

Professional iPhone and iPad Application Development (2010 Wrox)

Developing NeXTSTEP Applications (1995 Sams)

Segueway not being found
 
 
Q