IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    OBJECTIVE C summary

    攀升发表于 2015-02-01 18:18:00
    love 0
    - Primitive
    Basic C primitive type are available in objective C
    char/bool/int/long int/float/double/
    BOOL defines yes/true/1 and no/false/0
    - Additional Class
    NSInteger, NSUInteger, NSFloat, NSNumber
    for 64bit and 32bit CPU, the size of long, int may different, objective has additional class for these problem

    -Special
    id: id is a pointer which points to a object derived from NSObject.îî
    nil: nil == NULL in c. nil means a NSObject point to a null object/ nothing
    Nil: null class
    SEL: is type from selector, define a method name.
    NSString(@), BOOL (yes, no)

    [OOP]
    @interface: define the class, method declaration
    @implementation: detail the interface

    uppercast/downcast

    [Memery]
    Stack
    Heap
    @import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file;=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

    攀升 2015-02-02 02:18 发表评论


沪ICP备19023445号-2号
友情链接