07 2016 档案
摘要:1.利用block #import <UIKit/UIKit.h> @class TKAlertView; //cancel:0, ok:1 typedef void(^TKAlertViewIndexHandler) (NSInteger index, TKAlertView *alertView
阅读全文
posted @ 2016-07-21 15:26
SKT_answer
摘要:1.导入MBProgressHUD,需要用到MBRoundProgressView这个类方法,而且在里面还要添加一个方法支持xib, - (instancetype)initWithCoder:(NSCoder *)aDecoder { if (self = [super initWithCoder
阅读全文
摘要:#import <Foundation/Foundation.h> @interface NSDate (Addition) /** *某一天在当月多少号 */ - (NSInteger)daysOfCurrentMonth; /** * 某月第一天周几 * */ - (NSInteger)week
阅读全文
posted @ 2016-07-20 09:42
SKT_answer
摘要:注意中国使用火星坐标 需要转换的地方直接输入经纬度进行转换 C文件 .h文件 #ifndef __TestXml__ChinaMapShift__ #define __TestXml__ChinaMapShift__ #include <stdio.h> typedef struct { doubl
阅读全文
posted @ 2016-07-20 09:38
SKT_answer
摘要:不说直接撸代码 #import <Foundation/Foundation.h> @interface ByteStreamData : NSObject { int pos; } @property (assign) int pos; -(instancetype)init:(int)value
阅读全文
posted @ 2016-07-20 09:35
SKT_answer
摘要:1.模糊图片 - (void)getBlurImageAsyn:(UIImage *)sourceImage completionHandler:(void(^)(UIImage *blurImage))handler { dispatch_async(dispatch_get_global_que
阅读全文
posted @ 2016-07-20 09:33
SKT_answer
摘要:最近项目中上传地图围栏总是使用字节流上传加上其他数据请求 所以整合在一起了,直接上代码 #import <Foundation/Foundation.h> @interface HTTPRequest : NSObject + (HTTPRequest *)shared; - (void)testP
阅读全文
posted @ 2016-07-20 09:27
SKT_answer
摘要:UIGraphicsBeginImageContext(self.view.bounds.size); //currentView 当前的view 创建一个基于位图的图形上下文并指定大小为 [self.view.layer renderInContext:UIGraphicsGetCurrentCo
阅读全文
posted @ 2016-07-13 15:47
SKT_answer

浙公网安备 33010602011771号