IOS 面试题(不断更新...)
1.view继续于UIView和UIControl的区别?
2.UIViewController从创建到销毁各个方法执行的顺序?
创建:initWithNibName->loadView->viewDidLoad->viewWillAppear->viewWillLayoutSubviews->viewDidLayoutSubviews->viewDidAppear
销毁: viewWillDisappear->viewDidDisappear->viewWillUnload->viewDidUnload->didReceiveMemoryWroning->dealloc
3.以下方法的作用
alloc()
init()
copy()
initWithZone()
copyWithZone() 接收一个NSZone指针,这个指针描述哪个內存区是被分配来给新对象的