initWithNibName方法:
1.
2.是延迟加载,这个View上的控件是nil,只有到需要显示时,才不是nil
loadNibNamed方法:
1.
2.是即时加载,用该方法加载的xib对象中的各个元素已经存在。
when using loadNibNamed:owner:options:, the File's Owner should be NSObject, the main view should be your class type, and all outlets should be hooked up to the view, not the File's Owner.