最終更新:2017-06-06 (火) 18:36:59 (838d)  

NSObject awakeFromNib はてなブックマークを見る
Top / NSObject awakeFromNib

NIBからのロード時に送信されるメッセージ

Prepares the receiver for service after it has been loaded from an Interface Builder archive, or NIB file.

AppKit

  • NSNibAwaking?

iOS - NSObject UIKit Additions

動作

  • The nib-loading infrastructure sends an awakeFromNib message to each object recreated from a NIB archive, but only after all the objects in the archive have been loaded and initialized. When an object receives an awakeFromNib message, it is guaranteed to have all its outlet and action connections already established.
  • You must call the super implementation of awakeFromNib? to give parent classes the opportunity to perform any additional initialization they require. Although the default implementation of this method does nothing, many UIKit classes provide non-empty implementations. You may call the super implementation at any point during your own awakeFromNib? method.

UIViewController

関連