I integrated facebook api in my application. I am storing all wall values in array and showing it in my tableview NIB file. But after logged in I am getting an EXC_BAD_ACCESS exception in main.m in line this.
int retVal = UIApplicationMain(argc, argv, nil, nil);
I am able to trace value. Here is my code of loading nib file.
facebookData=[[[[NSArray alloc]initWithArray:result]retain]autorelease];
Fave *bController = [[[Fave alloc] initWithNibName:@"Fave" bundle:nil]autorelease];
[self.navigationController pushViewController:bController animated:YES];
[bController release];
Here facebookdata is an array defined in main.m file. I am storing values of wall in this array and in next Fave nib file I am showing values from array. Why I am getting this error during loading of nib file.
Thanks in advance
You have autoreleased the Fave View Controller and again you have released it.
Dont do that
Do like this
Why are you retaining and also autoreleasing.. Thats bad.
just give like this
In future where you dont need facebookData then release it