Objective-C

   Naoya Sangu
    @vochkun
Twitter: @vochkun

           -                 -
•              IT



•   iOS

•              iPhone/iPad
YumYum
Objective-C
C++ Java
 Objective-C
…
NSString

- (NSString*)stringByReplacingOccurrencesOfString:(NSString*)target
          withString:(NSString*)replacement
          options:(NSStringCompareOptions)options
          range:(NSRange)searchRange

- (        )                  1       :(   1   )   1
               2    :(        2   )    2
               3    :(        3   )    3
               4    :(        4   )    4




NSString* str = @"Hoge foo hoge bar";
NSString* ret = [str stringByReplacingOccurrencesOfString:@"hoge"
                              withString:@"FUGA"
                                 options:NSCaseInsensitiveSearch
                                   range:NSMakeRange(0, [str length])];
NSLog(@"%@", ret); // FUGA foo FUGA bar
Hoge* hoge = [[Hoge alloc] init]; //


[hoge fooBar]; //


[hoge release]; //



•
•

•        iOS 5       ARC
•
Objective-C
              …
nil
if (obj) {
    [obj fooBar:hoge];
}



  Objective-C
[obj fooBar:hoge];



nil
                         nil
• Apple
      Foundation/UIKit
 -   Android SDK         2/3   ※


 -                  UI


• Xcode
 -
•
    -                              getter/setter

    -   C# VB


•
    -
    -   Java Interface


•
    -
    -   Ruby


•
    -
    -   Ruby   JS        iOS 4.0
iOS SDK
         •
                   Objective-C   Xcode



         •   Xcode 3.x

         •

         •
¥2,940

         •   C++
iPhone
         Xcode 4
         •

         •
             Xcode 4


¥2,940
Objective-C 2.0
             •
                 Objective-C

             •
             •                 iOS


¥3,990
iPhone
UIKit

          • UI


          • Interface Builder
 ¥3,990
iOS


               •


               •

      ¥2,990
iPhone


           •
           •


  ¥3,570
Apple
iOS Developer Library
    http://developer.apple.com/jp/devcenter/ios/
    library/japanese.html

•             PDF

•               iOS



•
http://developer.apple.com/appstore/
    guidelines.html


•
•
    http://fladdict.net/blog/2010/09/reject-
    list.html
•              iPhone
    -                  ※

    -                                            ※


•              iPhone
    -
    -
    -   http://groups.google.co.jp/group/wtidev/

•          iPhone
    -
    -   https://groups.google.com/group/yidev/


        ATND
Twitter/Facebook
•   Twitter

    @iphone_dev_jp


                              1 3000

•   Facebook

    IOS_beginners
              App Store

                          600


                          …
Titanium Mobile
  http://www.appcelerator.com/products/
titanium-mobile-application-development/

            •   JS               →



            •   Android/iPhone



            •        UI

            •   masuidrive
cocos2d
http://www.cocos2d-iphone.org/


     •   Objective-C

     •   2D

     •   OpenGL

     •
     •
Unity
http://unity3d.com/japan/

     • 3D

     •

     • iOS
FMDB
           https://github.com/ccgus/fmdb




• sqlite       OSS

•           CoreData
•
    • Twitter: @vochkun
    • E-mail: naoya.sangu@gmail.com

俺的Objective-C勉強法