Possible Duplicate:
Properties and instance variable declaration
Whats the difference between the following two:
SomeClass.h
@interface SomeClass : NSObject {
NSString *someString;
}
@property (strong, nonatomic) NSString *someString;
@end
SomeClass.h
@interface SomeClass : NSObject
@property (strong, nonatomic) NSString *someString;
@end
I know whats the difference between the declaration inside the { } after the interface and a property is, but whats the difference between using both and using just a property?
Since the LLVM version 4.2 compiler there is no longer a difference. You no longer HAVE to declare a property variable inside the {}.