Can a native ipad app written in HTML5+Javascript+CSS accomplish the same things as one written in objective C
I would like to build an iphone/ipad app that has social networking capabilities and the ability to sell magazines and specific articles. I would also like this app to be able to be as flexible as possible for future features.
Should I insist the developer use objective C or could he accomplish the same thin开发者_运维知识库g with HTML5 etc..
If you're the client, and have specific technical requirements, you should document them from a technical POV. If not, well that's why you're hiring a developer--for their expertise.
There's pros and cons to each and we'd need to have a lot more project details to be of any specific help for you.
Do note that selling items via an app has its own set of red tape political issues with Apple. You may want to tackle that aspect of the project first. If you don't want to route any payments through Apple so they can take their cut, then you might want to rethink the app model and consider a mobile web site avenue instead.
UPDATE:
In general, here's some high-level comparisons:
Native Apps:
Pros
- can access native device functionality directly
- can leverage the native UI more directly
- can be much more performant in situations like heavy game animation, 3-d, image/video editing, ec.
- may be smaller file sizes
Cons
- have to be written per-device
- different devices use different native IDEs and Languages
HTML5/Phonegap apps
- can be written with cross-platform Web standards
- can still leverage native device features to an extent
- are easier to port from device to device (though still takes effort)
Cons
- you won't be creating graphic-heavy game-type apps with it now
- may be a bit slower than a native app
Pure HTML5 local web app
This is different than something like a phonegap solution. PhoneGap takes HTML5 and compiles it into native code. That means you can send it through the app store. There's another option, however, where you put the HTML5 app on your web server, and then a user requests to keep it locally on their device. The advantage is that this allows you to bypass the app store completely (though in most situations, people prefer to go through the app store)
I would say, "no", you shouldn't insist the developer use Objective-C. At least not unless other requirements not mentioned dictate the need for a native app. As DA mentioned, there are App Store policies that would need to be complied with for native apps that can be avoided by creating a web app. Also, if you choose, it would be easier to produce a web app that could be used across other platforms rather than being restricted to the iPad.
精彩评论