攀升·Uranus


Something Different,Something New
数据加载中……

OBJECTIVE C summary

- 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);

posted on 2015-02-02 02:18 攀升 阅读(1015) 评论(0)  编辑 收藏 引用 所属分类: iOS


只有注册用户登录后才能发表评论。
【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理