これは本当にループのために私を投げている。 Visual Studio用のXamarinをインストールし、空のプロジェクトを作成してMacに接続しました。私はiPhoneをシミュレートし、私が見て考えるのは絶対にどこにもありませんMain.cs
クラスのUIApplication.Mainへの呼び出しアプリケーション起動の最後にXamarin iOSのルートビューコントローラ
using UIKit;
namespace testapp
{
public class Application
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// if you want to use a different Application Delegate class from "AppDelegate"
// you can specify it here.
UIApplication.Main(args, null, "AppDelegate");
}
}
}
によって発生されている
Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Application windows are expected to have a root view controller at the end of application launch
をこのエラーを取得する - 誰もがに遭遇しましたこれの前に?
XamarinはあなたのiOSターゲットのコードを書く場所を提供しますか?私たちは一般にAppDelegateのアプリケーション内でウィンドウ状態を設定しました:didFinishLaunchingWithOptions:メソッド。私はXamarinが何を提供しているのかは分かっていませんが、あなたが検索するのにもっと興味深いものを得るかもしれないと考えました。 –
AppDelegate.csのコードを共有できますか? – Darshana