• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Starting iPhone Sdk
 

Starting iPhone Sdk

on

  • 1,833 views

 

Statistics

Views

Total Views
1,833
Views on SlideShare
1,828
Embed Views
5

Actions

Likes
3
Downloads
0
Comments
0

1 Embed 5

http://www.slideshare.net 5

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />

Starting iPhone Sdk Starting iPhone Sdk Presentation Transcript

  • iPhone ~ Interface Builder ~
  • • iPhoneSDK • • • IB Hello World
  • iPhoneSDK • iPhoneSDK Xcode iPhone App Interface Builder UI iPhone MacOSX Instruments
  • Xcode
  • iPhoneApp Navigation-Based Application ) OpenGL ES Application OpenGL ) 3D Tab Bar Application ) iPod
  • iPhoneApp Utility Application Dashboard Widget ) App View-based Application Window-based Application Window
  • Classes Other Sources Project main Resources Frameworks Products
  • Interface Builder
  • Interface Builder
  • Interface Builder
  • Interface Builder
  • Interface Builder
  • Instruments Xcode [ ]→[ ]→[Activity Monitor]
  • Objective-C ■ / : interface : implementation □ □ @interface MyWidget/* */:BaseWidget/* */{ @implementation MyWidget/* */ // // int hoge; - (id)initWithHoge:(int)_hoge { NSString *string; } // } - (id)initWithHoge:(int)_hoge; - (BOOL)hogehoge; - (BOOL)hogehoge { @end } @end
  • Objective-C □ [receiver message]; □ □ MyWidget *widget = [MyWidget alloc]; [widget release]; MyWidget *widget = [[MyWidget alloc] initWithHoge:10];
  • main.m #import <UIKit/UIKit.h> int main(int argc, char *argv[]) { // NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; // UIApplicationMain int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; } UIApplicationMain UIApplication Info.plist xib xib applicationDidFinishLaunching Delegate !!
  • main.m #import <UIKit/UIKit.h> int main(int argc, char *argv[]) { // NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; // UIApplicationMain int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; Delegate } UIApplicationMain UIApplication Info.plist xib xib applicationDidFinishLaunching Delegate !!
  • main.m #import <UIKit/UIKit.h> int main(int argc, char *argv[]) { // NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; // UIApplicationMain int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; Delegate } UIApplicationMain UIApplication Info.plist xib xib applicationDidFinishLaunching Delegate !!
  • Hello World!
  • Hello World! [ ]
  • Hello World! [ ] □ “Hello, World!”
  • Hello World! [ ] □ “Hello, World!” □ ”hoge” “Hello, hoge!”
  • ■ Window Window □ UIWindow ViewController □ View View   ■ View Subview  □ UIView □ UI □ UI ■ ViewController □ View
  • HelloWorldViewController.h #import <UIKit/UIKit.h> @interface HelloWorldViewController : UIViewController { IBOutlet UITextField *textField; // IBOutlet UILabel *label; // } - (IBAction)pushed:(id)sender; // @end Interface Builder Xcode ( ) UILabel View
  • IB □ UI □ ViewController IB ViewController View Interface Builder