![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
beautifularea
这个作者很懒,什么都没留下…
展开
-
selectedSegmentIndex显示为-1的小问题
今天同事遇到一个问题:在tableview的代理方法:commitEditingStyle中打印selectedSegmentIndex值的时候,一直显示为-1;看代码后发现,他在创建segmentedControl的时候,设置了属性: segmentedControl.原创 2011-10-12 18:29:19 · 2135 阅读 · 0 评论 -
oc复习笔记
BOOL使用8位存储,YES定义为1,NO定义为0,大于1不为YES,跟标准C不同。id是一种泛型,用于表示任何类的对象,id实际上是一个指针,指向其中的某个结构@implementation是一个编译器指令,表明你将为某个类提供代码原创 2011-10-19 00:01:14 · 1373 阅读 · 0 评论 -
oC 属性
@property和@synthesize可以自动生成某个类成员变量的存取方法readwrite:这个属性是默认的情况,会自动为你生成存取器assign:这个属性一般用来处理基础类型,比如int、float等等,如果你声明的属性是基础类型的话,assign是默认的原创 2011-10-19 00:17:47 · 628 阅读 · 0 评论 -
Why are Objective-C delegates usually given the property assign instead of retain?
A creates B A sets itself as B's delegate … A is released by its ownerIf B had retained A, A wouldn't be released, as B owns A, thus A's转载 2011-10-19 00:32:53 · 413 阅读 · 0 评论 -
模拟NSRunLoop
http://www.cnblogs.com/peer/archive/2011/09/16/2178766.html原创 2011-10-23 17:44:47 · 364 阅读 · 0 评论 -
What is the basic difference between NSTimer, NSTask, NSThread and NSRunloop?
Each program runs in at least one thread. You can think of each thread as a separate process of program execution, each running parallel to the others.If you have some kind of user interface, or o转载 2011-10-23 17:07:28 · 406 阅读 · 0 评论