搭车求教,有没有说 method的life-cycle说的比较清楚的文档推荐。
比如viewDidLoad和layout谁先谁后,傻傻分不清楚。比如这个问题:
http://stackoverflow.com/questions/9539676/uiviewcontroller-returns-invalid-frame/9540935#9540935高分答案里有
{{0, 0}, {768, 1004}} viewDidLoad
{{0, 0}, {768, 1004}} shouldAutorotateToInterfaceOrientation:
{{0, 0}, {768, 1004}} shouldAutorotateToInterfaceOrientation:
{{0, 0}, {768, 1004}} viewWillAppear:
{{0, 0}, {768, 1004}} shouldAutorotateToInterfaceOrientation:
{{0, 0}, {768, 1004}} shouldAutorotateToInterfaceOrientation:
{{0, 0}, {768, 1004}} willRotateToInterfaceOrientation:duration:
{{0, 0}, {1024, 748}} viewWillLayoutSubviews
{{0, 0}, {1024, 748}} layoutSubviews
{{0, 0}, {1024, 748}} viewDidLayoutSubviews
{{0, 0}, {1024, 748}} willAnimateRotationToInterfaceOrientation:duration:
{{0, 0}, {1024, 748}} shouldAutorotateToInterfaceOrientation:
{{0, 0}, {1024, 748}} viewDidAppear:
我之前看的是Stanford的cs193p,老师也提到xx方法时,还没有geometry,推荐在xx方法里做。
不知道有没有文章清晰地介绍这个方面的内容的。