Why can't I @synthesize accessors in a category?

前端 未结 2 725
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-18 06:21

Obj-C 2.0 lets me declare properties in a category, but the compiler refuses to synthesize accessors inside the category. Why?

(Sometimes it makes organization sense

2条回答
  •  耶瑟儿~
    2021-01-18 06:39

    The question asked there covers the private accessor problem. This approaches from a non-private-accessor POV.

提交回复
热议问题