-(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
//拖动返回选中的索引 当滚动视图停止时的时候- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ CGFloat width = scrollView.frame.size.width; NSLog(@"%f"...
分类:
其他好文 时间:
2015-09-09 16:41:47
阅读次数:
135
一、description方法Description方法包括类方法和对象方法。(NSObject类所包含)(一)基本知识-description(对象方法)使用NSLog和@%输出某个对象时,会调用对象的description方法,并拿到返回值进行输出。+description(类方法)使用NSLo...
分类:
编程语言 时间:
2015-09-08 23:31:50
阅读次数:
214
//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
1 - (void)drawRect:(CGRect)rect { 2 3 NSLog(@"drawRect"); 4 5 //获取图形的上下文 6 CGContextRef context = UIGraphicsGetCurrentCon...
分类:
其他好文 时间:
2015-09-06 20:15:01
阅读次数:
247
NSString *uuid = [[NSUUID UUID] UUIDString]; NSLog(@"uuid = %@",uuid);
分类:
移动开发 时间:
2015-09-06 19:57:13
阅读次数:
135
查阅资料: YoucanuseCFGetRetainCountwithObjective-Cobjects,evenunderARC: NSLog(@"Retaincountis%ld",CFGetRetainCount((__bridgeCFTypeRef)myObject));
分类:
其他好文 时间:
2015-09-06 12:44:36
阅读次数:
151