2015年7月10日
摘要: 对象在运行时获取其类型的能力称为内省。内省可以有多种方法实现。判断对象类型-(BOOL) isKindOfClass: classObj判断是否是这个类或者这个类的子类的实例-(BOOL) isMemberOfClass: classObj 判断是否是这个类的实例-(BOOL) respondsTo... 阅读全文
posted @ 2015-07-10 15:03 timo00 阅读(360) 评论(0) 推荐(0) 编辑
  2015年7月6日
摘要: Step11.点击Image.xcassets 进入图片管理,然后右击,弹出"New Launch Image"2.如图,右侧的勾选可以让你选择是否要对ipad,横屏,竖屏,以及低版本的ios系统做支持.这边我选了ios8.0,ios7.0,ios6没有做支持. Step2将规定尺寸的图片从你的文件... 阅读全文
posted @ 2015-07-06 18:37 timo00 阅读(667) 评论(0) 推荐(0) 编辑
  2015年6月25日
摘要: 1.终端查询静态库是否支持64位 : 打开终端,cd到静态库的地方。输入命令 lipo -info libUPPayPlugin.a2.数组取最大最小值 : arr = [NSArray arrayWithObjects:@"10",@"50",@"9", nil]; NSIntege... 阅读全文
posted @ 2015-06-25 18:38 timo00 阅读(171) 评论(0) 推荐(0) 编辑
  2015年6月24日
摘要: //坐标轴的初始化 -(void)axesInit { // Setup plot space: 设置一屏内可显示的x,y量度范围 CPTXYPlotSpace *plotSpace = (CPTXYPlotSpace *)[xyGra... 阅读全文
posted @ 2015-06-24 14:55 timo00 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 首先要引用委托方法:CPTScatterPlotDelegate、CPTPlotSpaceDelegate完成如下:#pragma mark - #pragma mark CPTPlotSpaceDelegate methods -(BOOL)plotSpace:(CPTPlotSpace *)... 阅读全文
posted @ 2015-06-24 14:52 timo00 阅读(318) 评论(0) 推荐(0) 编辑
摘要: corePlot 使用技巧://设置内边距:graph.plotAreaFrame.paddingLeft +=5;graph.plotAreaFrame.paddingTop +=5;graph.plotAreaFrame.paddingRight +=5;graph.plotArea... 阅读全文
posted @ 2015-06-24 13:41 timo00 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 设置corePlot可拖动:plotSpace.allowsUserInteraction = YES; 设置x显示的范围:plotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromInt(8 * oneDay)len... 阅读全文
posted @ 2015-06-24 11:48 timo00 阅读(232) 评论(0) 推荐(0) 编辑
摘要: core plot 阅读全文
posted @ 2015-06-24 11:34 timo00 阅读(231) 评论(0) 推荐(0) 编辑
  2015年6月19日
摘要: 1.检测网络状态 + (void)netWorkStatus { /** AFNetworkReachabilityStatusUnknown = -1, // 未知 AFNetworkReachability... 阅读全文
posted @ 2015-06-19 18:08 timo00 阅读(160) 评论(0) 推荐(0) 编辑
  2015年6月10日
摘要: #pragma mark - 截取图片- (void)cutMapView:(UIView *)theView{ //************** 得到图片 ******************* CGRect rect = theView.frame; //截取图片大小 ... 阅读全文
posted @ 2015-06-10 16:15 timo00 阅读(229) 评论(0) 推荐(0) 编辑