2015年12月17日

iOS9 HTTP 不能正常使用的解决办法

摘要: 升级Xcode 7.0 bata发现网络访问失败。输出错误信息The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.Goog... 阅读全文

posted @ 2015-12-17 15:47 konglei 阅读(75) 评论(0) 推荐(0) 编辑

几个ios正则表达式 判断邮箱 手机号码 身份证号码

摘要: [objc]view plaincopy//判断是否为邮箱-(BOOL)validateEmail:(NSString*)candidate{NSString*emailRegex=@"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";NSPredi... 阅读全文

posted @ 2015-12-17 15:25 konglei 阅读(258) 评论(0) 推荐(0) 编辑

UIImageJPEGRepresentation和UIImagePNGRepresentation

摘要: 在Iphone上有两种读取图片数据的简单方法: UIImageJPEGRepresentation和UIImagePNGRepresentation. UIImageJPEGRepresentation函数需要两个参数:图片的引用和压缩系数.而UIImagePNGRepresentation只需要图... 阅读全文

posted @ 2015-12-17 15:05 konglei 阅读(206) 评论(0) 推荐(0) 编辑

导航