XCode no valid compiled storyboard at path

后端 未结 9 2311
迷失自我
迷失自我 2020-12-07 01:29

I\'ve got a universal XCode Project (ObjC) for iPad and iPhone with a subproject that contains a storyboard. The subproject is a static library that has been added to the ma

9条回答
  •  渐次进展
    2020-12-07 02:23

    For me solution is:

    I used this code to load a new view controller - [UIStoryboard storyboardWithName:@"UIViewController" bundle:nil];

    First I tried - [UIStoryboard storyboardWithName:@"UIViewController" bundle:[NSBundle mainBandle]];

    But no lucky, finally I changed this code to:

    [self performSegueWithIdentifier:@"Segue" sender:self];

    And it helped, maybe it can help somebody too.

提交回复
热议问题