Xcode Analyze complained that I incorrectly decremented reference count for username.
Here is the declaration:
@property (nonatomic, retain) UITextField *username;
@property (nonatomic, retain) UITextField *password;
@property (nonatomic, retain) UIButton *login;
Here is the dealloc:
- (void)dealloc
{
[self.username release];
[self.password release];
[self.login release];
[super dealloc];
}
Generally you don’t do
but either
or
I’m not sure if that would cause it to complain like that though, esp since you are doing it for all your properties.