Hi, In my code, there is an memory leak, when the Keyboard appears for the first time when I am about to enter values in the UITextField. Can someone please give me some idea about this.
In the Interface File
IBOutlet UITextField *userEmail;
@property (nonatomic, retain) IBOutlet UITextField *userEmail;
Implementation File
@synthesize userEmail;
- (void)dealloc
{
[userEmail release];
}
- (void)viewDidUnload
{
self.userEmail = nil;
}
-(IBAction) emailOver:(id)sender{
[sender resignFirstResponder];
}
In the one of the functions NSLog(@"User Email: %@",[userEmail text]);
Memory Leak occurs when the keyboard appears for the first time Do I have implement UITextFieldDelegate? Thanks