Objectiva C 学习笔记1 CS193P

没有特别多时间来集中看objC和iOS的书,就上下班路上看了一下Standford的课程CS193P,入门绰绰有余了。

Course web site  ■ http://cs193p.stanford.edu/
• Other web sites
■ Apple Dev Center: http://developer.apple.com/
■ Developer Forums: http://devforums.apple.com/

External resources:
http://cs193p.com/
http://groups.google.com/group/iphone-appdev-auditors/


Cocoa Touch iPhone SDK 是基于 Coco API的Framework有 Foundation和UIKit


UIKit

User interface elements
Application runtime
Event handling
Hardware APIs


Foundation

Utility classes
Collection classes
Object wrappers for system services
Subset of Foundation in Cocoa


-InstanceMethod

+ClassMethod

UIAction

UIOutlet

Target - Action


Object creation
■ All objects allocated out of the heap
■ No stack based objects

id is Dynamically-typed object

Message Syntax:

[receiver message:arg1 andArg:arg2]

• Objects represented in format strings using %@

Selector 类似函数指针

Selectors include the name and all colons, for example:
! -(void)setName:(NSString *)name age:(int)age;
would have a selector:
! SEL sel = @selector(setName:age:);


Array - ordered collection of objects
• Dictionary - collection of key-value pairs
• Set - unordered collection of unique objects

 

 

 

posted on 2011-05-06 09:22 hchlee 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lihongchao/archive/2011/05/06/2038494.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值