若是在一个UIViewController中有以下代码,你可能就在误用UIViewController html
[viewController.view addSubview:someOtherViewController.view]; viewController.view.bounds = CGRectMake(50, 50, 100, 200);我也在误用,今天写程序的时候发现了个问题,在和同事探讨了许久他没有说服我,知道看了如下几个连接后,我知道本身确实错了。。。
故记录一下,以便后来检讨,继续学习。 ios
0)Abusing UIViewController app
http://blog.carbonfive.com/2011/03/09/abusing-uiviewcontrollers/ iview
1) view controller programming guide for ios ide
http://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/CreatingCustomContainerViewControllers/CreatingCustomContainerViewControllers.html 学习
2)view controller basics ui
http://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/AboutViewControllers/AboutViewControllers.html#//apple_ref/doc/uid/TP40007457-CH112-SW12 code