Hey Guys,
I "was" completely done with an app and decided to upgrade my iPhone SDK to 4.0 to do some testing. Unfortunately, I have discovered that my app is not working with the 4.0 firmware.
I have a class that has an NSString attribute that is not retaining its value correctly. I am declaring it like this within the header file:
Code:
@interface SensorReading : NSObject {
UINavigationController *navigationController;
NSString *sensor;
}
@property(nonatomic,retain) NSString *sensor;
at the top of the .m file i have:
Code:
@synthesize sensor;
but for some reason "sensor" is not holding its value. It will save the value until it leaves the helper function where it is assigned, but not after that...and it DOES work in 3.x firmware. I am assigning the string like this:
You guys have any idea why this might be happening? My app just crashes the next time I try to access "sensor".
Thanks for any help you can provide!