• Like
  • Save
Starting iPhone Sdk
Upcoming SlideShare
Loading in...5
×

Starting iPhone Sdk

  • 1,590 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,590
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
3

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
























Transcript

  • 1. iPhone ~ Interface Builder ~
  • 2. • iPhoneSDK • • • IB Hello World
  • 3. iPhoneSDK • iPhoneSDK Xcode iPhone App Interface Builder UI iPhone MacOSX Instruments
  • 4. Xcode
  • 5. iPhoneApp Navigation-Based Application ) OpenGL ES Application OpenGL ) 3D Tab Bar Application ) iPod
  • 6. iPhoneApp Utility Application Dashboard Widget ) App View-based Application Window-based Application Window
  • 7. Classes Other Sources Project main Resources Frameworks Products
  • 8. Interface Builder
  • 9. Interface Builder
  • 10. Interface Builder
  • 11. Interface Builder
  • 12. Interface Builder
  • 13. Instruments Xcode [ ]→[ ]→[Activity Monitor]
  • 14. 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
  • 15. Objective-C □ [receiver message]; □ □ MyWidget *widget = [MyWidget alloc]; [widget release]; MyWidget *widget = [[MyWidget alloc] initWithHoge:10];
  • 16. 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 !!
  • 17. 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 !!
  • 18. 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 !!
  • 19. Hello World!
  • 20. Hello World! [ ]
  • 21. Hello World! [ ] □ “Hello, World!”
  • 22. Hello World! [ ] □ “Hello, World!” □ ”hoge” “Hello, hoge!”
  • 23. ■ Window Window □ UIWindow ViewController □ View View   ■ View Subview  □ UIView □ UI □ UI ■ ViewController □ View
  • 24. 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
  • 25. IB □ UI □ ViewController IB ViewController View Interface Builder