iOS相当于Android中的MainActivity [英] iOS equivalent of the MainActivity in Android

查看:155
本文介绍了iOS相当于Android中的MainActivity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发一个Xamarin.iOS应用程序,我想知道在iOS中是否有相当于Android的"MainActivity"。

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.


情况:我正在使用Xamarin和MVVM-Pattern来跨多个平台(iOS,Android,WPF)共享业务逻辑。业务逻辑提供"MainViewModel",其中包含基本代码。因此,我不能忽略"MainViewModel"。

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".


一般来说,这适用于除iOS之外的所有平台,因为我不知道如何在iOS中使用MainViewModel。在Android中,可以将"MainViewModel"与"MainActivity"连接起来 - 是否有任何iOS等效的"MainActivity"?
或者还有其他解决方案吗?

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.

推荐答案



您好Michael_Michi_204,


Hi Michael_Michi_204,

>>是否有任何iOS等效的"MainActivity"?或者还有其他解决方案吗?

感谢您在此处发帖。

关于Xamarin 跨平台开发,我建议你可以访问
Xamarin论坛获得合适的帮助。

For your case about Xamarin cross-platform development, I suggest you can visit the Xamarin Forums for getting a suitable help.

您的理解与合作将不胜感激。

Your understanding and cooperation will be grateful.

最诚挚的问候,

Yohann Lu

Yohann Lu


这篇关于iOS相当于Android中的MainActivity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆