摘要:
根据nib名称可以实现根据配置文件实例化UIViewController,也可以使用instantiateViewControllerWithIdentifier方法从Storyboard实例化UIViewControllerUIViewController*vc;//判断nib是否存在,如果存在,就加载if([[NSBundlemainBundle]pathForResource:destinationofType:@"nib"]!=nil){vc=[[UIViewControlleralloc]initWithNibName:destinationbundle:nil] 阅读全文