私AppDelegate.h
には@property (nonatomic, strong) IBOutlet UIWindow *window
と があり@property (nonatomic, strong) IBOutlet UITabBarController *tabBarController
ます。
実装では I @synthesize *window = _window, *tabBarController = _tabBarController;
.
私のターゲット設定では、私のMainWindow.xib
ファイルが指定されています。
私のファイルには、 、 、 のMainWindow.xib
3 つのオブジェクトがあります。、 、、に接続します。AppDelegate
Window
Tab Bar Controller
Window
AppDelegate
Tab Bar Controller
Window.rootViewController
Tab Bar Controller
AppDelegate
に戻るとAppDelegate.h
、コンセントの円が接続済みとして表示されます。
最後に、私のAppDelegate.m
ファイルで:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[self.window makeKeyAndVisible];
NSLog(@"%@",self.window);
return YES;
}
このログの内容は常に(null)
.
アプリケーションの起動時に、ウィンドウとタブ バー コントローラーが表示され、ユーザーの操作を受け取ります。
何がうまくいかないのですか?