将 Objective C 代码转换为 Java 代码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5482511/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 11:19:36  来源:igfitidea点击:

Converting an Objective C code into java code

javaobjective-c

提问by User

Is there any tool available to convert objective C code into java ?

是否有任何工具可以将目标 C 代码转换为 java ?

回答by Andremoniy

You can try this thing: Objc2j

你可以试试这个东西:Objc2j

回答by Zac Bowling

Checkout out apportable. It's much better than trying to convert your source code to Java. Just leave it in Objective-C and use Apportable to run your code on other platforms.

结帐可移植。这比尝试将源代码转换为 Java 要好得多。只需将它留在 Objective-C 中并使用 Apportable 在其他平台上运行您的代码。

回答by Cal

You should try O2J - Objective-C to Java source code translatorfrom the Mac App Store. It is a cheap and very effective way to generate native Java code from your Objective-C.

您应该尝试从 Mac App Store尝试O2J - Objective-C 到 Java 源代码的翻译器。这是一种从 Objective-C 生成原生 Java 代码的廉价且非常有效的方法。