I currently have three modalViewControllers and each have their own ways to dismiss.
For Two of them, I have to use UILabel and then have using the touchesEnded: method to determine whether the release was within the proper area - then call to dismiss the modalViewController.
However, I have one where I can just use a UIButton and it works fine.
I just can't figure out why the heck I can't use a UIButton for all of them. I keep getting the error:
objc[38738]: FREED(id): message release sent to freed object=0x5214f70
Program received signal: “EXC_BAD_INSTRUCTION”.
I'm assuming it has to do with attempting to access something that has been released (duh) - but I don't have anything occurring other than a -(IBAction)closeWindow:(id)sender {} method that calls:
[self dismissModalViewControllerAnimated:YES];
Any help?