A few days ago in looking at C, but did not take notes, now watching Objective--c, began to take notes, hope every day to grow it
objective--c keyword 1 @import import note <>| | "" Where "is the file you wrote <> is the project comes with it similar to the C language #include, but it prevents duplicate import of the 2 Core Framework Foundation core approach File Foundation.h is the foundation's header file, which is a OBJC base class library, basically all the OBJECTC code behind it needs to introduce the file (class Library) Common methods @autoreleasepool Memory Recycling There is no need for developers to manually dispose of useless objects @NSLog () printouts similar to Java System.out.pritln (), PRILTLF () in C, with wrap, note that the output string constants in OBJC need to precede the string with the @ symbol concept 1 There is no concept of package in OBJC, all class names in the project must be unique and cannot produce duplicates, most of which are preceded by prefix 2 data type 1 Bool type contains value yes| | NO is actually an integer 1 and the NSString ID type is an object type that can represent all objects 3 the foundation string Type 4 char character inherits the C type 5 int integer inherits the C type 6 double decimal inherits the C type 7 float decimal inherits the Class C The type 8 struct struct type inherits the C type 9 enum enum type inherits the C type commonly used format character format notation%i integer%u unsigned integer%o Unsigned 8 binary integer%x unsigned 16 binary integer%f decimal single precision%LF decimal double precision%@ String%p object type essence is output pointer address%d integer%s string
ISO Learning Log 2015-3-13