码迷,mamicode.com
首页 >  
搜索关键字:self this    ( 14215个结果
iOS7后使用AVCapture出现 unsupported type found. Use -availableMetadataObjectTypes错误的解决
在集成扫描二维码功能时候,我使用的是系统在iOS7.0 之后才支持的扫描二维码功能类。刚开始创建代码是这么写的 1 -(void)setUpCamera 2 { 3 self.device = [AVCaptureDevice defaultDeviceWithMediaType:AVMed...
分类:移动开发   时间:2014-06-25 20:54:51    阅读次数:258
Python Super
看了2个blog后还是没闹明白 因为Django的东西 所以自己写了test的例子终于明白了 首先给出结论---->别人总结的可惜一开始没闹明白: 1. super并不是一个函数,是一个类名,形如super(B, self)事实上调用了super类的初始化函数,        产生了一个super对象; 2. super类的初始化函数并没有做什么特殊的操作,只是简单记录了类类型和具体实例;...
分类:编程语言   时间:2014-06-24 18:39:17    阅读次数:342
bzoj 1799: [Ahoi2009]self 同类分布 题解
【原题】 1799: [Ahoi2009]self 同类分布 Time Limit: 50 Sec  Memory Limit: 64 MB Submit: 554  Solved: 194 [Submit][Status] Description 给出a,b,求出[a,b]中各位数字之和能整除原数的数的个数。 Input Output Sample ...
分类:其他好文   时间:2014-06-24 18:38:02    阅读次数:295
《集体智慧编程》代码勘误:第六章
一:勘误 classifier类中:       def fprob(self, f, cat): if self.catcount(cat) == 0: return 0 #notice: rember change int to double or float # + 0.0 or *1.0 is ok, other wise, may get 0. return self.fc...
分类:其他好文   时间:2014-06-24 17:49:42    阅读次数:211
oc中对象的初始化
在.m文件中使用对象方法:- (id)init{_name =@“zhangsan”;_age = 18;return self;}然后通过main方法中进行创建对象并初始化:例如:Person *p1 = [[Person alloc] init];类方法alloc是分配内存空间,对象方法init...
分类:其他好文   时间:2014-06-24 15:13:45    阅读次数:170
NSThread基础使用
1.创建和启动线程 一个NSThread对象就代表一条线程; 创建,启动线程NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil];[thread start];2.线程...
分类:其他好文   时间:2014-06-24 13:33:55    阅读次数:167
OC中线程的状态相关
1.线程的状态NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil];[thread start];2.控制线程状态2.1>启动线程 -(void)start; //进....
分类:编程语言   时间:2014-06-24 11:53:02    阅读次数:233
NSThread的一些细节
1.NSThread创建方式(一个NSThread对象就代表一条线程)1.1>创建\启动线程(1)线程一启动,就会在thread中执行self的run方法NSTread *thread = [[NSThread alloc] initWithTarget:self selector:@selecto...
分类:其他好文   时间:2014-06-24 11:42:16    阅读次数:224
下载图片,
-(void)downImage{ AlbumInfo *info = [self.dataArray objectAtIndex:index]; NSString *filePath = [[SandBoxPath pathForCaches]stringByAppendingPathComp.....
分类:其他好文   时间:2014-06-24 10:59:35    阅读次数:231
HTML标签<a>的使用方法
1.普通用法:<ahref="">thisisalink</a>a标签中的属性:·href:值为URL·target:说明在何处打开目标URL,取值为:_blank;_parent;_self;_top;framename·name:规定锚的名称,用href=#name可以跳转到指定的地方·onclick:指定点击响应函数2.特殊用法:·实现..
分类:Web程序   时间:2014-06-22 11:54:08    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!