Varieties of @interface declarations, some with parentheses

前端 未结 3 1736
别那么骄傲
别那么骄傲 2020-12-11 18:20

I\'ve noticed a variety of @interface declarations for Objective-c classes. I\'d like to understand why developers declare @interface in the follo

3条回答
  •  感动是毒
    2020-12-11 18:32

    What ever goes in the .m file is private. the parens are for categories so you can segment your code into categories to make it more readable. because the code is in .m and private, they called the category Private.

提交回复
热议问题