Anyone can point out a documentation or a detailed discussion using @class. I\'ve been using this but haven\'t really fully understood it. I want to learn more about it and
// header.h
#import
@class reference;
@interface class
...
@end
// implementation.m
#import "header.h"
#import "reference.h"
@implementation class
...
@end
you use this when you have a class that is referenced circularly between multiple files, and you import the header that contains the class described by the @class
directive, and you can safely refer to the class circularly.