문제

Recently I've started working on a website that is targeted at mobile web-browsers(iOS, 3DS, DSi, Android, etc). I would like to make an app on iTunes to go with this website. Problem is, I have no idea where to start or if it's even possible with my particular coding knowledge.

Can I write iTunes apps with HTML, CSS, PHP, etc., or do you have to know more complicated types of code? And if I can do it with web-code, do I need some kind of license to publish to the app store? How does this all work?

Thanks in advance!

도움이 되었습니까?

해결책

If you're talking about using a server backend to deliver content from PHP to a user client written in HTML/Javascript, this is very easy to do using iOS. You can use UIWebKit to display HTML and execute Javascript code. If you want cross-language support between Obj-C and JS, Objective-C can talk to Javascript using:

[UIWebView stringByEvaluatingJavaScriptFromString:(NSString *)];

for Javascript talking to Objective C, this can be accomplished using delegates (specifically UIWebViewDelegate) which is detailed here.

다른 팁

You cannot write iOS apps (I believe this is what you mean by iTunes) in PHP.

http://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/chapters/Introduction.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top