iPhone SDK: what's the difference between #import and @class?

Posted by sashaeve on Stack Overflow See other posts from Stack Overflow or by sashaeve
Published on 2010-05-02T12:55:20Z Indexed on 2010/05/02 12:57 UTC
Read the original article Hit count: 168

Filed under:

We can import class declaration with #import:

#import "SomeClass.h"

or declare with @class:

@class SomeClass;

What's the difference and when we should use each of them?

© Stack Overflow or respective owner

Related posts about iphone-sdk