Understanding this use of “(Private)” in @interface declaration

前端 未结 3 2022
情歌与酒
情歌与酒 2021-01-21 19:38

I\'ve seen some code written this way:

@interface AViewController(Private)

I wanted to know if that (Private) means something when

3条回答
  •  情书的邮戳
    2021-01-21 19:52

    Private is just a way to define a category on an object. Does not mean much to Apple but I would recommend using a unique name whenever adding categories to well known libraries such as ones in the FoundationFramework. If your naming convention is a prefix of AV then add a category like this.

    @interface AViewController(AVPrivate);

提交回复
热议问题