摘要: 根据nib名称可以实现根据配置文件实例化UIViewController,也可以使用instantiateViewControllerWithIdentifier方法从Storyboard实例化UIViewControllerUIViewController*vc;//判断nib是否存在,如果存在,就加载if([[NSBundlemainBundle]pathForResource:destinationofType:@"nib"]!=nil){vc=[[UIViewControlleralloc]initWithNibName:destinationbundle:nil] 阅读全文
posted @ 2012-05-21 21:22 静候良机 阅读(334) 评论(0) 推荐(0) 编辑