I am trying to load an XIB with the code below:
but every time I press on the UIButton that it's linked to, the app crashes and Xcode throws EXC_BAD_ACCESS at me and I honestly have no idea why. What I have done is have a welcome screen and then once the user presses one of the UIButtons, the next view loads using loadNibNamed (this works fine) but when I try to load another view using the loadNibNamed method, the application doesn't work - any ideas?
Thanks in advance!
Code:
-(IBAction)openNewViewButtonPress:(id)sender {
[[NSBundle mainBundle] loadNibNamed:@"NewView" owner:self options:nil];
}
but every time I press on the UIButton that it's linked to, the app crashes and Xcode throws EXC_BAD_ACCESS at me and I honestly have no idea why. What I have done is have a welcome screen and then once the user presses one of the UIButtons, the next view loads using loadNibNamed (this works fine) but when I try to load another view using the loadNibNamed method, the application doesn't work - any ideas?
Thanks in advance!