摘要: 1 //在xcode45-DP2下使用2 [NSString stringWithFormat:@""];3 //会有这个警告4 //format string is not a string literal (potentially insecure)5 //加个nil既可解决6 [NSString stringWithFormat:@"",nil]; 阅读全文
posted @ 2012-08-10 17:02 Mr.Songz 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1 //保存: 2 NSMutableArray* array = [[NSMutableArray alloc] init]; 3 for(int i=0; i<3; i++){ 4 MyObject *testObj = [[MyObject alloc] init]; 5 testObj.lowValue =[NSNumber numberWithFloat:122.2+i ]; 6 testObj.highValue = [NSNumber numberWithFloat:19888+... 阅读全文
posted @ 2012-08-10 16:28 Mr.Songz 阅读(143) 评论(0) 推荐(0) 编辑