IB has been useless for some time, program this thing often write and use will forget
There is no link between IB and Viewcontroller, but the beginning is wrong. Cause has been crash, really to Xcode said I have what revenge with you, and you have any resentment.
IB is associated with Viewcontroller in a few simple steps:
1, (first create an empty Xib file, and a Uiviewcontroller sub-Class), typing is not clear, then directly
2, file's owner owns the view (note here is not to drag a viewcontroller, is a view, began to think is Viewcontroller, the results of the collapse of the scattered, tears of the lesson! )
3. Method of initialization:democontroller *demo = [[democontroller alloc] initwithnibname:@ " Democontroller " bundle:nil", where Democontroller is the name of Xib don't write wrong, write wrong also will collapse.
IOS AutoLayout (i) IB is associated with Viewcontoller