I\'ve gone through a bunch of answers regarding this problem but none seem to relate to my problem.
I have two views, View 1 has a button. View 2 has a button.
You may have to setup the bundle for the class before accessing the xib:
ObjectiveC:
//Bundle initialisation
NSBundle* bundle = [NSBundle bundleForClass:[self class]];
//Initialising the nib
UIView *nibView = [[bundle loadNibNamed:@"nibFileName" owner:self options:nil] objectAtIndex:0];
//Display the ad (this will vary based on your application setup)
[[[UIApplication sharedApplication] keyWindow] addSubview:nibView];