可以使用哪些编程语言来开发 iPhone、iPod Touch 和 iPad (iOS) 应用程序?
What programming languages can one use to develop iPhone, iPod Touch and iPad (iOS) applications?
未来是否有计划扩展 iOS 将支持的编程语言的数量?
Also are there plans in the future to expand the amount of programming languages that iOS will support?
Apple 取消了对非 Objective C/C/C++ 应用程序的限制——你只是无法加载不在应用程序包中的代码.
Apple lifted the restrictions on non-Objective C/C/C++ apps -- you just can't load code that isn't in the app bundle.
MonoTouch 允许您使用 .NET 语言 - 直接支持 C#,但如果您有 Windows,则可以使用任何 .NET 语言制作程序集并使用它.
MonoTouch lets you use .NET languages -- C# is directly supported, but if you have Windows, you can make assemblies in any .NET language and use it.
有传言称 Apple 将直接支持其他语言——我不断听到 ruby,但它们只是谣言.
There are rumors that Apple is going to support other languages directly -- I keep hearing ruby, but they are just rumors.
我认为 Lua 已被用于许多应用程序的游戏逻辑.
I think Lua is being used for game logic on a lot of apps.
编辑(2018 年):通常,您可以使用任何可以为 iOS 编译甚至安装语言解释器的语言.您不能做的主要事情是从 Internet 加载不在应用程序包中的代码.
EDIT (in 2018): Generally you can use any language that you can get to compile for iOS or even install language interpreters. The main thing you cannot do is load code from the Internet that wasn't in the app bundle.
人们总是这样做(请参阅 React Native 应用程序从服务器加载 JavaScript),但从技术上讲,这是不允许的.如果您制作某种可以加载整个 App 类内容的 App Store,那么主要的事情会引起 Apple 的注意.
People do this all of the time anyway (see React Native apps loading JavaScript from servers), but, technically, it's not allowed. The main thing that will get you attention from Apple if you make some kind of App Store that loads whole App-like things.
编辑(2020 年):来自@Pylot 的评论:我知道这是很久以前的事了,但现在至少从技术上讲,您可以加载未嵌入应用程序的代码,因为您可以使用 JavaScript 编写网页浏览.不留下你的答案是错误的或任何东西,我绝对同意你的看法.但我正在寻找一些东西,并在途中发现了这篇文章.想如果有人看到这可能会帮助他们.
EDIT (in 2020): from @Pylot in comments: I know this is a long time ago, but now at least technically you can load code that isn’t embedded in the app, as you can write with JavaScript using the webview. Not staying your answer is wrong or anything, I definitely agree with you. but I was looking for something and found this post on the way. Figured if anyone sees this it might help them out.
这篇关于可以使用哪些编程语言来开发 iPhone、iPod Touch 和 iPad (iOS) 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!