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