摘要: 转载于:http://www.cnblogs.com/zhucunliang/archive/2013/11/09/3416039.html//1、init初始化 NSString * str1 = [[NSString alloc] init]; NSLog(@"str1 = %@",str1);//2、initWithBytes:length:encoding:从给定字符串按照给定获取方向,得到指定个数的字符 NSString * str2 = [[NSString alloc] initWithBytes:"afasffaf" length:6 e 阅读全文
posted @ 2013-12-04 10:27 haotianling 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.cnblogs.com/wujian1360/archive/2011/09/05/2167992.html创建一个 Timer+scheduledTimerWithTimeInterval: invocation: repeats:+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti invocation:(NSInvocation *)invocation repeats:(BOOL)yesOrNo;+scheduledTimerWithTimeInterval: target: se.. 阅读全文
posted @ 2013-12-04 10:25 haotianling 阅读(218) 评论(0) 推荐(0) 编辑