码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
leetcode - Recover Binary Search Tree
题目:Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A ...
分类:其他好文   时间:2014-06-28 10:26:38    阅读次数:253
Leetcode Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:其他好文   时间:2014-06-25 23:01:44    阅读次数:227
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
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
0621.用WebView展示html数据
1、在loadView方法里面先创建并加载UIWebView-(void)loadView{ self.view = [[UIWebView alloc]init];//这样在控制器上只会有一个View}2、在设置WebView的执行路径- (void)viewDidLoad{ [sup...
分类:Web程序   时间:2014-06-22 12:41:26    阅读次数:262
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
jquery的attr方法禁用表单元素
jquery禁用输入内容 $(function(){ $("#name").attr("disabled","disabled"); $("#note").attr("disabled","disabled"); $("#submitBtn").attr("disabled","disabled"); }) 姓名: 说明:   提交...
分类:Web程序   时间:2014-06-22 09:45:37    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!