When does an IBOutlet initialize?
问题 I set up an outlet for a text view via Interface Builder. The text view loads fine, however I can't access any of the properties of it programmatically because the outlet is always nil . When does it instantiate? Even after my applicationDidFinishLoading gets called, it's still not "alive" or unarchived. 回答1: An outlet doesn't instantiate because an outlet is a variable (or property). The objects in a nib are instantiated when that nib is loaded, and they are assigned to each outlet as