摘要: xcode7.要设置info中添加App Transport Security Settings(type为Dictionary)在这个字典下添加Allow Arbitrary Loads(type为Boolean,Value为Yes),http协议#import "ViewController.h... 阅读全文
posted @ 2016-01-07 17:18 小飞侠的博客 阅读(226) 评论(0) 推荐(0)
摘要: /*获取路径的方法*/#import "ViewController.h"@interface ViewController ()@property(nonatomic,copy)NSString * imagePath;@property(nonatomic,strong)UIButton * p... 阅读全文
posted @ 2016-01-07 17:09 小飞侠的博客 阅读(1536) 评论(0) 推荐(0)
摘要: // 照片原图路径#define KOriginalPhotoImagePath [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppe... 阅读全文
posted @ 2016-01-07 17:05 小飞侠的博客 阅读(704) 评论(0) 推荐(0)
摘要: 在继承UIView 创建PIDrawerView类,.m中申明一个枚举类型NS_ENUM,set 与get 画线类型DrawingMode和颜色设置UIColor#import typedef NS_ENUM(NSInteger, DrawingMode) { DrawingModeNone = ... 阅读全文
posted @ 2016-01-06 09:01 小飞侠的博客 阅读(205) 评论(0) 推荐(0)
摘要: - (void)monitorInternet{ // 1.获得网络监控的管理者 AFNetworkReachabilityManager *mgr = [AFNetworkReachabilityManager sharedManager]; // 2.设置网络状态改变后的处理 ... 阅读全文
posted @ 2015-12-31 10:26 小飞侠的博客 阅读(135) 评论(0) 推荐(0)