在静态库中的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跳转
最新推荐文章于 2018-08-03 14:44:10 发布