ファイルの所有者XIBに接続できません。アプリケーションタイプはユニバーサルです。「参照アウトレット」のファイルの所有者には「新しい参照アウトレット」のみがあり、「参照アウトレットコレクション」の下には「新しい参照アウトレットコレクション」のみがあります。UIImageViewのIBOutletをxibに接続することはできません。合成したにもかかわらず、ファイルの所有者にUIImageViewのアウトレットが表示されません。これはコードです:
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
RootViewController.mで
@interface RootViewController ()
@end
@implementation RootViewController
@synthesize imageView;
@synthesize fromRootViewController;
RootViewController_iPhone.xibおよびRootViewController_iPad.xibには、UIImageViewのアウトレットは表示されません。
私がアプリケーションを実行するとき、これは間違いです:
NSInternalInconsistencyException。バンドルにNIBを読み込めませんでした:NSBundle
どのようにできるのか?前もって感謝します