在静态库中的xib跳转,bundle需要设置一下路径,否则容易报错: Could not load the nib '**" NSString * rescourcePath = [[NSBundle mainBundle] pathForResource:@"LibraryResources" ofType:@"bundle"]; NSBundle * bundle =[NSBundle bundleWithPath:rescourcePath]; MyViewController * myVC =[[MyViewController alloc]initWithNibName:@"MyViewController" bundle:bundle];
在静态库中的xib跳转
最新推荐文章于 2020-04-02 10:37:35 发布