Hey guys,
I have a couple of properties declared in my header file, and just wondering when they have to be released. I'm currently doing them in my "dealloc" method, but getting the EXC_BAD_ACCESS error when doing so.
Here's my code
@property (nonatomic, retain) NSTimer *timer;
@property (nonatomic, retain) NSString *closeimage;
@property (nonatomic, retain) NSString *alertStyle;
@property (nonatomic, retain) NSString *phonelaunch;
@property (nonatomic, retain) NSString *resultmessage;
Here's my dealloc method
- (void)dealloc {
[super dealloc];
[timer release];
[closeimage release];
[alertStyle release];
[phonelaunch release];
[resultmessage release];
}
Thanks for any help in advance!