标签:color io os sp on c r ios bs
一般控制器有延迟是应该我们控制器的视图view是栏加载的,等我们用到的时候才会加载,所有我们在利用UINavigationCongtroller,的这个方法
[self.navigationController pushViewController:controller animated:YES];跳转的时候,控制器需要加载视图view。所有会延迟一会儿。解决办法:
view.frame = CGRectMake(0, 0, ZXScreenW, ZXScreenH);,手动调用下view的set方法就可以解决。
ZXTakePictureController *pic = [[ZXTakePictureController alloc] init];
//pic.view.frame = CGRectMake(0, 0, ZXScreenW, ZXScreenH);
pic.view.backgroundColor = [UIColor whiteColor];
[self.navigationController pushViewController:pic animated:YES];
标签:color io os sp on c r ios bs
原文地址:http://www.cnblogs.com/likuiliang/p/3968761.html