ISO Learning Log 2015-3-13

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.