Your SlideShare is downloading. ×
0
Titanium mobile
Titanium mobile
Titanium mobile
Titanium mobile
Titanium mobile
Titanium mobile
Titanium mobile
Titanium mobile
Titanium mobile
Titanium mobile
Titanium mobile
Titanium mobile
Titanium mobile
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Titanium mobile

1,494

Published on

JavaScriptでネイティブアプリをつくろう

JavaScriptでネイティブアプリをつくろう

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,494
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. JavaScript
    • 2. iPhone Objective-C#include <Foundation/NSObject.h>#include <stdio.h>@interface HelloWorld : NSObject- (void) hello;@end@implementation HelloWorld- (void) hello{ printf("Hello World.n");}@endint main(int argc, char **argv){ id obj = [HelloWorld alloc]; [obj hello]; return 0;}
    • 3. Android Javapackage com.example.helloandroid;import android.app.Activity;import android.os.Bundle;public class HelloAndroid extends Activity {    /** Called when the activity is first created. */    @Override    public void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        setContentView(R.layout.main);    }}
    • 4. …
    • 5. JavaScript
    • 6. iPhone / Android
    • 7. Titanium Mobile
    • 8. Titanium JavaScriptTitanium.UI.setBackgroundColor(#000);console.log(‘hello world’);
    • 9. var win1 = Titanium.UI.createWindow({ title:TextArea, backgroundColor:#fff, url: modules/editor.js});
    • 10. var tabGroup = Titanium.UI.createTabGroup();var tab1 = Titanium.UI.createTab({ icon:KS_nav_views.png, title:Tab 1, window:win1});

    ×