2018年9月17日
摘要: (一)ionic是什么 简单的讲,ionic是一个跨平台框架,一个让你只写一次代码却可以将android、iOS、微信公众号、移动端web页面一把撸的框架。 (二)ionic的基石 ionic是基于谷歌的Angular框架,在这个框架上做了封装,使得我们开发移动端程序更为便捷。 ionic还基于Co 阅读全文
posted @ 2018-09-17 10:09 sandyLoveCoding 阅读(1353) 评论(0) 推荐(0) 编辑
  2017年6月21日
摘要: 面: AGSPolygon *poly; int m = poly.numPoints; //点数 for(int i =0;i<m;i++) { AGSPoint *point=[poly pointOnRing:0 atIndex:i]; double x =point.x; double y  阅读全文
posted @ 2017-06-21 16:11 sandyLoveCoding 阅读(224) 评论(0) 推荐(0) 编辑
  2017年6月8日
摘要: NSString *myDevice = [[UIDevice currentDevice].model substringToIndex:4]; if([myDevice isEqualToString:@"iPad"]) { } else if([myDevice isEqualToString 阅读全文
posted @ 2017-06-08 16:18 sandyLoveCoding 阅读(81) 评论(0) 推荐(0) 编辑
摘要: -(NSString*)getID{ CFUUIDRef puuid=CFUUIDCreate(nil); CFStringRef uuidString=CFUUIDCreateString(nil, puuid); // NSString *result=(NSString*)CFStringCr 阅读全文
posted @ 2017-06-08 14:45 sandyLoveCoding 阅读(435) 评论(0) 推荐(0) 编辑
  2016年10月28日
摘要: 通过NSDate *date=[NSDate date];获取到的时间虽然转为字符串输出是本时区时间,但起实质上是0°经线的地方时,有时候需要转为本时区时间,方法如下: //转本地时间- (NSDate *)getNowDateFromatAnDate:(NSDate *)anyDate{ //设置 阅读全文
posted @ 2016-10-28 15:14 sandyLoveCoding 阅读(179) 评论(0) 推荐(0) 编辑
  2016年10月27日
摘要: 前几天,我的mac在连接wifi时总会弹出“未能加入wifi网络........“,而我的其他设备连接的湿滑顺畅。我在网上苦搜很久,试过很多方法都没有用。 我冥思苦想,至从我给mac插上我的usb扩展头之后它就再也没有连上过wifi,于是我报着试一试的态度拔下了我的usb扩展头。 奇迹发生了,这货居 阅读全文
posted @ 2016-10-27 17:34 sandyLoveCoding 阅读(1049) 评论(0) 推荐(0) 编辑
  2016年10月23日
摘要: //filePath 是要上传到服务器图片的路径,如果是截图图片,你可以image对象新建一个,来获取路径,比如已知一个UIImage对象image: CGSize size=image.size; NSData *DATA=[self imageWithImage:image scaledToSi 阅读全文
posted @ 2016-10-23 17:54 sandyLoveCoding 阅读(344) 评论(0) 推荐(0) 编辑
  2016年9月24日
摘要: - (void)snapshotScreen:(UIView *)myView { CGSize size = myView.bounds.size; UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].sca 阅读全文
posted @ 2016-09-24 16:00 sandyLoveCoding 阅读(188) 评论(0) 推荐(0) 编辑
  2016年9月7日
摘要: AVSpeechSynthesizer *av=[[AVSpeechSynthesizer alloc]init]; AVSpeechUtterance *UTT=[[AVSpeechUtterance alloc]initWithString:yourText]; [av speakUtteran 阅读全文
posted @ 2016-09-07 17:15 sandyLoveCoding 阅读(247) 评论(0) 推荐(0) 编辑
  2016年8月15日
摘要: //获取当前时间日期 NSDate *date=[NSDate date]; NSDateFormatter *format1=[[NSDateFormatter alloc] init]; [format1 setDateFormat:@"yyyy-MM-dd hh:mm:ss"]; NSStri 阅读全文
posted @ 2016-08-15 20:46 sandyLoveCoding 阅读(13410) 评论(0) 推荐(0) 编辑