I am sure this is a stupid mistake, but I have been trying for the last hour to remove the preview from my supervisor without any success.
In my first view, I have
UIViewController *helpView = [[[UIViewController alloc] initWithNibName:@"HelpView" bundle:nil] autorelease];
[self.view addSubview:helpView.view];
And then inside helpView, I have a button that is associated with an IBAction called "closeHelp", which simply does the following:
- (IBAction) closeHelp{
[self.view removeFromSuperview];
}
But this leads to the fact that my application crashes with EXC_BAS_ACCESS for some strange reason, even those that are inside the HelpView, that is, self.view should point to the correct one for viewing.
Thank your help
Thank.
Shay.
source
share