Xamarin.Forms to native Xamarin.iOS conversion

Converting Xamarin.Forms to native Xamarin.iOS app using storyboard. Requires some attention in overriding Window property in AppDelegate.

Steps:

  1. Add storyboard and use native controls in your Forms.iOS project.

  2. Update the info.plist to use this newly added storyboard as “Main Interface”.

  3. Modify the AppDelegate by extending UIApplicationDelegate and overriding Window Property as:

public partial class AppDelegate : UIApplicationDelegate
{
    public override UIWindow Window
    {
        get;
        set;
    }

    public override bool FinishedLaunching (UIApplication app, NSDictionary options)
    {
        return true;
    }
}

See in action here:

Why override Window property? Check this out.

Dialogue & Discussion