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
UIViewController
class or theRootViewController
class? have you checked it in the Interface Builder already? – holex