iOS: Returning to main XIB from secondary XIB
问题 I am trying to change a back to the main xib after I was on a second XIB. This is the current code I am using: NSArray *nibObjs = [[NSBundle mainBundle] loadNibNamed:@"Results1" owner:self options:nil]; UIView *aView = [nibObjs objectAtIndex:0]; self.view = aView; I have a button on the second xib that returns back to the originating xib. When I hit the button the app crashes. I am not sure why because it does not display an error - it just crashes. Here is the code on the button on the