Many knowledge points, not difficult. Just, do not know this concept, every time to explore the pit, will know that there is this thing.Ld:symbol (s) not found for architecture x86_64The definition was not found in the. o file. OC Compilation is the first to compile the. o file, and then link. If the. h declaration is not implemented in. m, no symbol will be found. No, it doesn't matter. Restoration identifier and reuse identifier are not the same. Restoration identifier is used for recovery. Reuseidentifier is the cell. The reuseidentifier of Tableviewcell can be assigned only at initialization time, and then remains unchanged; if you load the cell through nib, you need to register the nib file. The init of the custom view can be written in awakefromnib destructors can be written in dealloc but consider whether a initview should be added manually to the call. The elements that are loaded onto the stage by Viewcontroller initwithnib are viewwilldisapperviewdidload triggered when the add SubView:controller.view. However, this does not mean that the controller is already in the management. Manual Addchildcontroller required. The new Apple API adds the Addchildviewcontroller method and wants us to call the [self Addchildviewcontroller:child] method while using Addsubview to set the sub The view corresponding Viewcontroller is also added to the current Viewcontroller management. For those who currently do not need to display the Subview, only through the Addchildviewcontroller to add Subviewcontroller, need to be displayed and then call the Transitionfromviewcontroller method. Add it to the underlying viewcontroller.
//Method Addchildviewcontroller:
removeFromParentViewController:transitionFromViewController:toViewController:duration:options:animations: Completion:
Willmovetoparentviewcontroller:
Didmovetoparentviewcontroller://attribute @property (nonatomic,readonly) Nsarray *childviewcontrollers
File's owner and view Controller are used together, with initwithnib if only view can customize UI
ios-Development Little Kee Pits Tour