Reputation: 4716
I can not connect to the file's owner XIB. The application type is universal. In the file's owner in the "Referencing outlets" there is only "New Referencing Outlet" and under "Referencing Outlet collection" there is only "New Referencing Outlet Collection". There isn't possibility to connect the IBOutlet of UIImageView to the xib. In the file's owner don't appears the Outlet of UIImageView, despite I synthesize it. This is the code:
In RootViewController.h
#import <UIKit/UIKit.h>
@interface RootViewController : UIViewController <UIGestureRecognizerDelegate>{
}
@property (nonatomic, copy) IBOutlet UIImageView *imageView;
@property (nonatomic, assign)BOOL fromRootViewController;
- (void)handleTap:(UITapGestureRecognizer *)recognizer;
@end
In RootViewController.m
@interface RootViewController ()
@end
@implementation RootViewController
@synthesize imageView;
@synthesize fromRootViewController;
In RootViewController_iPhone.xib and RootViewController_iPad.xib don'y appears the Outlet of UIImageView.
When I run the application this is a mistake:
NSInternalInconsistencyException. Could not load NIB in Bundle: NSBundle
How can I do? Thanks in advance
Upvotes: 0
Views: 1202
Reputation:
Open IB and file's owner and look under custom class, check if the class name refers to the XIB is right or if it says a generic NSObject, in this case, fix it.
Upvotes: 2