PhoneGap   iPhone/android
PhoneGap


•

•   iPhone Android Blackberry etc…

•
PhoneGap


•   HTML    JavaScript CSS

•   Web
PhoneGap

•
    •
    •
    •
    •   etc...
•iphoneOS
 Xcode, iphoneSDK               OK

•PhoneGap
 PhoneGap                            OK

 http://www.phonegap.com/...
1. main.m    →PhoneGapDelegate

  •   int main(int argc, char *arv[])
2. PhoneGapDelegate.m →

  •   - (void)applicationDi...
PhoneGapDelegate.m
         //

         - (void)applicationDidFinishLaunching:(UIApplication
         *)application

    ...
PhoneGapDelegate.m
//webView

- (void)webViewDidStartLoad:(UIWebView *)theWebView

{




                              JSO...
PhoneGapDelegate.m
//webView

- (void)webViewDidFinishLoad:(UIWebView *)theWebView

{




    webView


    webView

}
PhoneGapDelegate.m
//webView

- (BOOL)webView:(UIWebView *)theWebView
shouldStartLoadWithRequest:(NSURLRequest *)request
n...
PhoneGapDelegate.m
    /

    - (BOOL) execute:(InvokedUrlCommand*)command

    {{
         //



        // Fetch an inst...
PhoneGapDelegate.m



@interface InvokedUrlCommand : NSObject
{

 NSString* command;

 NSString* className;

 NSString* me...
• WEB
• objective-C
•
• GUI

•
•       Xcode

•
URL
•   PhoneGap       Wiki(                        )

    •   http://wik
i.phonegap
.com/Front
Page

•                   ...
Android ...
•           Android                   !!

    •
           2010/06/19 15:00 ~ 17:30   30



                  ...
PhoneGap_Javakuche0612
PhoneGap_Javakuche0612
PhoneGap_Javakuche0612
Upcoming SlideShare
Loading in …5
×

PhoneGap_Javakuche0612

2,488 views
2,384 views

Published on

Published in: Technology, Design
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,488
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide



















  • PhoneGap_Javakuche0612

    1. 1. PhoneGap iPhone/android
    2. 2. PhoneGap • • iPhone Android Blackberry etc… •
    3. 3. PhoneGap • HTML JavaScript CSS • Web
    4. 4. PhoneGap • • • • • etc...
    5. 5. •iphoneOS Xcode, iphoneSDK OK •PhoneGap PhoneGap OK http://www.phonegap.com/download ※
    6. 6. 1. main.m →PhoneGapDelegate • int main(int argc, char *arv[]) 2. PhoneGapDelegate.m → • - (void)applicationDidFinishLaunching:(UIApplication *)application • - (void)webViewDidStartLoad:(UIWebView *)theWebView • - (void)webViewDidFinishLoad:(UIWebView *)theWebView • - (BOOL)webView:(UIWebView *)theWebView shouldStartLoadWithRequest:(NSURLRequest *)request
    7. 7. PhoneGapDelegate.m // - (void)applicationDidFinishLaunching:(UIApplication *)application { PhoneGap.plist plist delegate GPS (GPS ) webView webView window index.html webView webView ( ) }
    8. 8. PhoneGapDelegate.m //webView - (void)webViewDidStartLoad:(UIWebView *)theWebView { JSON ( ) }
    9. 9. PhoneGapDelegate.m //webView - (void)webViewDidFinishLoad:(UIWebView *)theWebView { webView webView }
    10. 10. PhoneGapDelegate.m //webView - (BOOL)webView:(UIWebView *)theWebView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { webView gap:// iphoneOS (execute) file:// (safari) www }
    11. 11. PhoneGapDelegate.m / - (BOOL) execute:(InvokedUrlCommand*)command {{ // // Fetch an instance of this class PhoneGapCommand* obj = [self getCommandInstance:command.className]; NSString* fullMethodName = [[NSString alloc] initWithFormat:@"%@:withDict:", command.methodName]; if ([obj respondsToSelector:NSSelectorFromString(fullMethodName)]) { [obj performSelector:NSSelectorFromString(fullMethodName) withObject:command.arguments withObject:command.options]; } }
    12. 12. PhoneGapDelegate.m @interface InvokedUrlCommand : NSObject { NSString* command; NSString* className; NSString* methodName; NSMutableArray* arguments; NSMutableDictionary* options; } javaScript command = DebugConsole.log className = DebugConsole methodName = log arguments, options =
    13. 13. • WEB • objective-C •
    14. 14. • GUI • • Xcode •
    15. 15. URL • PhoneGap Wiki( ) • http://wik i.phonegap .com/Front Page • ( ) • http://agi lmente.com /2008/12/2 9/phonegap %E3%81%A7j avascripta pi%E8%BF%B D%E5%8A%A0 %E6%96%B9% E6%B3%95%E 6%A6%82%E8 %A6%81%E7% B7%A8/ • sample( ) • http://exa mples.orei lly.com/97 80596805791/
    16. 16. Android ... • Android !! • 2010/06/19 15:00 ~ 17:30 30 14 17 IT http://atnd.org/events/5093

    ×