ChenYilong / iOSInterviewQuestions

iOS interview questions;iOS面试题集锦(附答案)--学习qq群或 Telegram 群交流 https://github.com/ChenYilong/iOSBlog/issues/21

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@property的本质真的是 ivar + getter + setter ?

MonsterENT opened this issue · comments

我认为@Property无论在@interface还是在@protocol下其作用都是一样的,即声明getter、setter.
不同的是@protocol下不会有自动合成,也就不会有变量实例、以及getter,settter的实现、