デバイスの回転時に新しいビューが表示される iPhone 用の電卓を実行していますが、次の 3 つのエラーが発生しています。
CalculatorAppDelegate.m:21: 警告: 互換性のない Objective-C の型 'struct CalculatorViewController *'、予期される 'struct UIViewController *' は、異なる Objective-C の型から 'setRootViewController:' の引数 1 を渡すときに'
このエラー(および以下)はコードからのものです:
self.window.rootViewController = self.viewController;
CalculatorAppDelegate.m: 警告: セマンティックな問題: 「CalculatorViewController *」から「UIViewController *」に代入する互換性のないポインター型
以下のエラーは次のものです。
UIInterfaceOrientation interfaceOrientation = [[object object] orientation];`
CalculatorViewController.m: 警告: セマンティックの問題: 列挙型 'UIDeviceOrientation' から別の列挙型 'UIInterfaceOrientation' への暗黙的な変換