awlcs
awlcs

Reputation: 606

@class myClass; //what does this does, I can't figure out :s

Everything is in the title, I doesn't understand what the statement below does:

#import "x.h"
#import "y.h"
#import "MyAppAppDelegate.h"
#import "z.h"


@implementation x

@class myClass;

Could someone explain me using simple words please? I'm quite new to iphone programming :s

Upvotes: 0

Views: 56

Answers (1)

Martin Brugger
Martin Brugger

Reputation: 3158

Simple Words: It tells the compiler, that there will be a Class named myClass and not to warn you about an unknown class if not really necessary.

Complex Words

Upvotes: 2

Related Questions