Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

iOS equivalent of the MainActivity in Android

MB.6381MB.6381 USMember ✭✭

I’m working on an Xamarin.iOS application and I would like to know whether there is an equivalent of Android’s “MainActivity” in iOS.

The situation: I’m using Xamarin and the MVVM-Pattern to share business logic across multiple platforms (iOS, Android, WPF). The business logic provides a “MainViewModel”, which contains essential code. Therefore, I can’t ignore the “MainViewModel”.

In general, this works perfectly for all platforms except iOS, because I don’t know how to use the MainViewModel in iOS. In Android it is possible to connect the “MainViewModel” with the “MainActivity” – Is there any iOS equivalent of the "MainActivity"? Or is there another solution?

Thank you very much for your help.

Best Answer


  • MB.6381MB.6381 USMember ✭✭

    Thank you, that's it. ;)

Sign In or Register to comment.