是否可以将iOS代码添加到Java平台 [英] Is it possible to add iOS codes to java platforms
本文介绍了是否可以将iOS代码添加到Java平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将ios代码添加到java平台?
如果是,怎么样?
我试过的:
我试图从G找到答案,但没有运气
解决方案
是,通过JNI:
Java Native Interface - Wikipedia,免费的百科全书,
Java原生接口规范内容,
JNI API和开发人员指南。
我必须注意,根据我的经验,iOS对外国人更具敌意,因此即使使用跨平台代码也更加困难,并且跨平台代码与操作系统可能更难。这个难点的一个方面是基于Objective-C的非常不同的编程模型。
参见这个开源产品:GitHub - dropbox / djinni:用于生成跨语言类型声明和界面绑定的工具。。
< DD> -SA
Is it possible to add ios codes to java platforms?
If yes, how?
What I have tried:
I tried to find answer from G, but no luck
解决方案
Yes, via JNI:
Java Native Interface — Wikipedia, the free encyclopedia,
Java Native Interface Specification Contents,
JNI APIs and Developer Guides.
I must note that, from my experience, iOS is more hostile to "foreigners", so even the use of cross-platform code is more difficult, and interfacing of cross-platform code with the OS can be even more difficult. One aspect of this difficulty is a very different programming model based on Objective-C.
See also this open-source product: GitHub - dropbox/djinni: A tool for generating cross-language type declarations and interface bindings..
—SA
这篇关于是否可以将iOS代码添加到Java平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文