Tool from Google translates Java to Objective-C
Google released an open-source command-line tool for translating Java code to Objective-C, in effect making it easier to port Android apps to iOS.
It's called J2ObjC and it enables Java code to be part of an iOS application's build, as no editing of the generated files is necessary.
The goal is to write an app's non-UI code (such as data access, or application logic) in Java, which is then shared by web apps (using GWT), Android apps, and iOS apps.
However, the project owners safeguard that J2ObjC does not provide any sort of platform-independent UI toolkit, nor are there any plans to do so in the future. iOS User Interface code still needs to be written in Objective-C or Objective-C++ using Apple's iOS SDK.
This is a great tool to port native Android apps to iOS. However, my personal opinion is that the future trend still seems to be developing apps in HTML5, CSS3 and JS so they can be programmed once and executed on any modern smartphone or tablet device.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment