Shortly, I am parsing a xml file and getting user MD5 password. Now when i am comparing parsed password and user given password in a text field then i am finding Program received signal: “EXC_BAD_ACCESS”
when i do not compare between these password then code execute.Here is my code.
if([checkingParsedPassword isEqualToString:passwordMD5String]){
tabbarController = [[TabbarController alloc] initWithNibName:@"TabbarController" bundle:nil];
UINavigationController *myTabbarController = [[[UINavigationController alloc] initWithRootViewController:tabbarController] autorelease];
myTabbarController.navigationBar.barStyle = UIBarStyleBlackOpaque;
[self.navigationController presentModalViewController:myTabbarController animated:YES];
[tabbarController release];
}
If i have to give u any more information then please don’t hesitate because i am in serious problem.
EDIT
when i am using NSLog…i can see both string.
NSLog(@"The parsed pass: %@ and the user pass: %@ ",checkingParsedPassword, passwordMD5String);
but when i try to compare then i got these exc_bad_access on if condition
if([checkingParsedPassword isEqualToString:passwordMD5String]){
NSLog(@"checked");
}
The converted password from md5 might not be a UTF8string,so try converting md5 password in a string like
before comparing.