上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: - (unsigned) Count;数组所包含对象个数; NSLog(@"self.dataArray cound:%d",[self.dataArray count]); - (id) objectAtIndex: (unsigned int) index;获取指定索引处的对象; NSLo... 阅读全文
posted @ 2015-10-10 18:07 上官元空 阅读(154) 评论(0) 推荐(0) 编辑
摘要: NSString *Path = @"~/NSData.txt"; NSLog(@"Extension:%@",[Path pathExtension]); 阅读全文
posted @ 2015-10-10 18:05 上官元空 阅读(122) 评论(0) 推荐(0) 编辑
摘要: string的操作应用NSRange range = [self.general rangeOfString:@"."];NSString *str = [self.general substringToIndex:range.location];NSRange range1 = [str rang... 阅读全文
posted @ 2015-10-10 18:04 上官元空 阅读(158) 评论(0) 推荐(0) 编辑
摘要: NSString *Path = @"~/NSData.txt"; NSString *absolutePath = [Path stringByExpandingTildeInPath]; NSLog(@"absolutePath:%@",absolutePath); NSLog(@"Pat... 阅读全文
posted @ 2015-10-10 18:04 上官元空 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 创建一个时间格式化对象 NSDateFormatter *datef = [[NSDateFormatter alloc] init]; 设定时间的格式 [datef setDateFormat:@"yyyy-MM-dd"]; 将字符串转换为时间对象NSDate *tempDate = [datef... 阅读全文
posted @ 2015-10-10 18:03 上官元空 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 父视图产生缩放效果的代码[UIView beginAnimations:nil context:nil]; self.view.transform = CGAffineTransformScale(CGAffineTransformIdentity,0.8,0.8); self.view.cente... 阅读全文
posted @ 2015-10-10 18:03 上官元空 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 0CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文
1 CGContextMoveToPoint 开始画线
2 CGContextAddLineToPoint 画直线 3 CGContextAddEllipseInRect 画一... 阅读全文
posted @ 2015-10-10 18:01 上官元空 阅读(169) 评论(0) 推荐(0) 编辑
摘要: CLLocationManager *locationManager = [[CLLocationManager alloc]init];locationManager.delegate = self;设置精确度 locationManager.desiredAccuracy = kCLLocati... 阅读全文
posted @ 2015-10-10 18:01 上官元空 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 遵循的代理是:UIImagePickerControllerDelegate,UINavigationControllerDelegate实现的代理方法是:选了某一张照片后调用这个方法-(void)imagePickerController:(UIImagePickerController *)pi... 阅读全文
posted @ 2015-10-10 17:59 上官元空 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 可以先把图片的源文件的名称后面加上@2x 这种图片显示不正常问题原因可能是没有二倍图造成的!! 阅读全文
posted @ 2015-10-10 17:58 上官元空 阅读(709) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页