Разработка мобильных приложений под iOS

  • Published on
    22-Jul-2015

  • View
    99

  • Download
    3

Embed Size (px)

Transcript

  • ?

  • , , , :

    1. 2. 3.

  • , !

    :

    1.

    2.

    3.

    4.

  • iOS

    1. 2.

    3. 4. 5. $$$6.: Objective C

    (99$)

  • Objective-C

    1. Objective-C 80-x Smalltalk. 2. 1988 NeXT Objective-C3. 1996 Apple NeXT Objective-C

    Mac OS. IDE Xcode, GUI Interface Builder.

    4. 2007 Objective-C iPhone OS

    , Objective-C NS: NeXTSTEP , NeXT .

  • Objective-C

    1.-

    2.

    3. ++ (Objective-C++)

    4.-

    5. (Automatic Reference Count)

    6. , NullPointerException (

    if (object != NULL ) )

  • XCode ( ). 6.1.1.

    :1. Mac Mac OS X Yosemite 10.102. ( )

    ( )

  • Objective-C

    *.h

  • *.m

  • *.h

    (Extension) *.m

  • *.h

  • *.m

    Protected !

  • - Java C#

  • id

    Objective-C

    id , void * ( Objective-C isa , ),

  • nil

    1. null

    2. ,

    3. nil

    4. 0

    5.

  • Objective-C ARC (Automatic Reference Counter).

    Garbage Collector, , ARC / , retain/release.

  • ARC?

    1. init 1

    2. retain ,release .

    3. , retain

  • atomic nonatomic

    strong weak

    readwrite readonly

    getter= setter=

    copy assign

    retain unsafe_unretained

  • 1. myLocalVariable

    2. myProperty

    3. MyClass

    4. doSomethingWithObject:(MyClass *)object fromObject:(MyClass *)fromObject;

    5. _myLocalVariable

  • ?https://developer.apple.com/library/ios/navigation/

    Objective-C. iOS Mac OS

Recommended

View more >