Objective C terminology: outlets & delegates
问题 I'm having issues understanding the concept of outlets how the iPhone deals with events. Help! Delegates confuse me too. Would someone care to explain, please? 回答1: Outlets (in Interface Builder) are member variables in a class where objects in the designer are assigned when they are loaded at runtime. The IBOutlet macro (which is an empty #define ) signals Interface Builder to recognise it as an outlet to show in the designer. For example, if I drag out a button, then connect it to the