Updating the AppDelegate class
Open the AppDelegate.cs file and change the AppDelegate class to inherit from MvxApplicationDelegate<MvxIosSetup<MvvmCrossDemo.Core.App>, MvvmCrossDemo.Core.App> instead of UIApplicationDelegate. You can find the source code of it here: https://github.com/MvvmCross/MvvmCross/blob/develop/ContentFiles/iOS/AppDelegate.cs.pp.
Then delete all the methods in this class. The result looks like this:
1
using Foundation;
2
using MvvmCross.Platforms.Ios.Core;
3
using UIKit;
4
5
namespace MvvmCrossDemo.iOS
6
{
7
// The UIApplicationDelegate for the application. This class is responsible for launching the
8
// User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
9
[Register("AppDelegate")]
10
public class AppDelegate : MvxApplicationDelegate<MvxIosSetup<Core.App>, Core.App>
11
{
12
}
13
}
Copied!
Last modified 3yr ago
Copy link