Take Uitextfield to illustrate:
1.
Ns_class_available_ios(2_0) @interface uitextfield:uicontrol <uitextinput, nscoding >
@end
The contents of the middle of these two lines of content,
such as @property (nonatomic,copy) NSString *text; is the Uitextfield property that sets the text information for the Uitextfield. Other properties can be consulted by reference to the official documentation.
For Example -(cgrect) Placeholderrectforbounds: (cgrect) bounds; is the Uitextfield override method for Uitextfield customization. Other rewriting methods can be consulted by reference to the official documentation.
2.
@protocol uitextfielddelegate <nsobject>
@end
The middle of these two lines of content,
For example-(BOOL) textfieldshouldbeginediting: (Uitextfield *) TextField, is the proxy method of Uitextfield, written in the controller, This method listens when the text starts to enter, and can do some other things. Other proxy methods can be consulted by reference to the official documentation.
3.
For example Uikit_extern NSString *const uitextfieldtextdidbegineditingnotification; is an immutable string constant, is the convention commonly known as using this uitextfieldtextdidbegineditingnotification string, Nsnotificationcenter to register a uitextfielddidbegineditingnotification to implement the monitoring, other classes to send notifications, registration notification This class calls the appropriate method. Several other fixed strings can be consulted by reference to the official documentation.
iOS Control header file interpretation