Assuming a new project with ARC enabled is created
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
and the following declaration
@property (nonatomic) NSString *classDescription;
Why would
@synthesize classDescription;
error out with
"Existing ivar 'classDescription' for unsafe_unretained propery 'classDescription must be _unsafe_unretained"
I thought that with Version 4.2 of Xcode, no retains, releases are needed. Is this not correct?
Please clarify
You need to make it a
strongproperty so that ARC knows it should retain the object.