I'm currently working with the latest version of Xcode (v5.0.2) and my app has a deployment target of iOS 7.0.
My problem is that no matter in what class, i can set a property in the header
ex: @property (strong, nonatomic) NSString *firstName;
in the implementation file, I can synthesize it just fine
ex: @synthesize firstName;
My problem is that I cannot use _firstName
in the code. I have used the automatic ivars in other projects just fine (the property name preceded with the underscore).
Xcode complains and tells me to change it to the name of the property without the underscore. I don't understand why this project isn't creating the ivars with the underscore for me automatically. I know that in older versions of Objective-C, you had to do this yourself but you don't for iOS 7.
Thanks!