![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OC
im5437
这个作者很懒,什么都没留下…
展开
-
NSArry 中的方法 --Objective-C
//NSArray *array = [NSArray alloc] initWithObjects: @”One”,@”Two”,@”Three”,@”Four”,nil];self.dataArray = array; [array release];//- (unsigned) Count;数组所包含对象个数; NSLog(@"self.dataArray cound:%d",[se转载 2015-05-06 19:11:02 · 386 阅读 · 0 评论 -
@property中的变量与_
Objective-C语言关键词,与@synthesize配对使用。xcode4.5以及以后的版本,@synthesize可以省略 下面以 Person 类为例: 在. h 文件中: @interface Person : NSObject { NSString * _name; NSString * _sex; NSInteger _age; } @property NSStr转载 2015-05-18 23:53:55 · 630 阅读 · 0 评论 -
OC的方法和 函数
方法:方法是Objective-C独有的一种结构,只能在Objective-C中声明、定义和使用,C语言不能声明、定义和使用。 1、类方法以+号开头,对象方法以-号开头 + (void) init; // 类方法 - (void) show; // 对象方法 2、在@interface和@end之间声明,在@implementation和转载 2015-05-19 19:05:19 · 591 阅读 · 0 评论 -
UITableView的registerClass forCellReuseIdentifier用法详解
a转载 2015-08-25 23:16:57 · 449 阅读 · 0 评论 -
tableView: cellForRowAtIndexPath:方法中两个获得重用cell的方法:
转载自: http://www.zpluz.com/thread-3504-1-1.htmltableView: cellForRowAtIndexPath:方法中有两个获得重用cell的方法:UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 和 UITableViewC转载 2015-08-25 23:44:12 · 569 阅读 · 0 评论