objective-c 后綴名.m 是哪個(gè)單詞的縮寫(xiě)呢.
.h head 縮寫(xiě) .m 又是哪個(gè)? model?manage?
業(yè)精于勤,荒于嬉;行成于思,毀于隨。
I always thought that there was an m in implementation, so it became .m. But most of the sayings on the Internet are the abbreviation of methods or message!
I have never struggled with this, but I know that the suffix of Objective-C source files is .m. That’s it, why bother?
Why don’t you google this question first before asking it? Answer
.m file: message file (message, also called implementation file).
The data implementation mechanism of objective-c is the same as the message sending implementation mechanism of smalltalk. Therefore, the code implemented in objective-c is saved in the .m (message) abbreviated suffix file to indicate the role and function of this file. use.