码迷,mamicode.com
首页 >  
搜索关键字:nslog    ( 1220个结果
短时间内不停访问一组数据,每次只取出一个时,需用懒加载
-(void)button{ NSArray *arrbutton=[LBZModelDataAll dataArrayFromModel:poet_list];// NSLog(@"%@",arrbutton); NSLog(@"%lu",(unsigned long)arrbutton.c...
分类:其他好文   时间:2015-09-10 18:59:29    阅读次数:134
网络通信中关于请求数据、断点续传和写入本地文件
-(void)viewDidLoad{[superviewDidLoad];NSLog(@"%@",NSHomeDirectory());//取得已下载数据大小NSUserDefaults*userDefaults=[NSUserDefaultsstandardUserDefaults];receiveTotal=[[userDefaultsobjectForKey:@"ReceiveTotal"]doubleValue];total=[[userDefaultsobjectForKey:@..
分类:其他好文   时间:2015-09-10 11:13:28    阅读次数:130
关于沙盒的读写文件的几种方式
@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // h获取应用沙盒 NSString *homaPath = NSHomeDirectory(); NSLog(@"%@",homaPath)...
分类:其他好文   时间:2015-09-10 00:36:15    阅读次数:187
UIScrollView 滚动停止的时候一次调用此方法
//拖动返回选中的索引 当滚动视图停止时的时候- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ CGFloat width = scrollView.frame.size.width; NSLog(@"%f"...
分类:其他好文   时间:2015-09-09 16:41:47    阅读次数:135
OC语言description方法和sel
一、description方法Description方法包括类方法和对象方法。(NSObject类所包含)(一)基本知识-description(对象方法)使用NSLog和@%输出某个对象时,会调用对象的description方法,并拿到返回值进行输出。+description(类方法)使用NSLo...
分类:编程语言   时间:2015-09-08 23:31:50    阅读次数:214
JSON解析保存在类中
//my.h#ifndef __1_Header_h#define __1_Header_h#define DEBUG 1#define aa 1#ifdef aa#ifdef DEBUG#define NSLog(FORMAT, ...) fprintf(stderr,"%s\n",[[NSStr...
分类:Web程序   时间:2015-09-08 22:04:21    阅读次数:314
装箱与拆箱的概念
//通过数字类型创建数字对象(装箱) ? ? ? ? NSNumber *num1 = [[NSNumber alloc] initWithInteger:123]; ? ? ? ? NSLog(@"%@", num1); ? ? ? ? NSNumber *num2 = [[NSNumber alloc] ini...
分类:其他好文   时间:2015-09-07 08:22:03    阅读次数:146
Quartz2D的学习2
1 - (void)drawRect:(CGRect)rect { 2 3 NSLog(@"drawRect"); 4 5 //获取图形的上下文 6 CGContextRef context = UIGraphicsGetCurrentCon...
分类:其他好文   时间:2015-09-06 20:15:01    阅读次数:247
IOS获取设备的UUID
NSString *uuid = [[NSUUID UUID] UUIDString]; NSLog(@"uuid = %@",uuid);
分类:移动开发   时间:2015-09-06 19:57:13    阅读次数:135
在 arc里面打印 引用计数的方法
查阅资料: YoucanuseCFGetRetainCountwithObjective-Cobjects,evenunderARC: NSLog(@"Retaincountis%ld",CFGetRetainCount((__bridgeCFTypeRef)myObject));
分类:其他好文   时间:2015-09-06 12:44:36    阅读次数:151
1220条   上一页 1 ... 57 58 59 60 61 ... 122 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!