奇思妙想 · 2024年 4月 18日 0

ObjC的@interface和@class

22 次浏览

@interface等同于大部分面向对象class关键字,@class在ObjC中仅仅用于前向声明类,这个区别需要格外注意。