Search Unity

display a Storyboard from a plugin IOS

Discussion in 'iOS and tvOS' started by Ikarhu, Jan 18, 2022.

  1. Ikarhu

    Ikarhu

    Joined:
    Jun 26, 2018
    Posts:
    2
    Hello, I'm working on an application, who communicate with a plugin iOS that I have code. Howether, it seems that I can't display storyboard who are in these plugins.
    This is my code to load my storyboard :
    let storyboard = UIStoryboard(name: "Main", bundle: nil)

    let vc = storyboard.instantiateViewController(withIdentifier: "StoryboardPhoto")

    self.present(vc, animated: true)
    I have verify and the name of my storyboard, and his identifier are good. Do I need to add something more in Unity to let it works ?
    Thanks for your reply
     
  2. Ikarhu

    Ikarhu

    Joined:
    Jun 26, 2018
    Posts:
    2
    Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle </private/var/containers/Bundle/Application/8A980D01-D963-4BE0-B9A4-7AA5D2041B6A/SYSLORRcolement.app> (loaded)'
    This is the error that I have when I try to display the storyboard