摘要: if (@available(iOS 11.0, *)) { // 版本适配 <!--self.edgesForExtendedLayout = UIRectEdgeNone;--> <!--self.extendedLayoutIncludesOpaqueBars = NO;--> <!--sel 阅读全文
posted @ 2019-06-13 16:09 wj0920wjx 阅读(530) 评论(0) 推荐(0) 编辑
摘要: NSURL * url = [NSURL URLWithString:@"weixin://scanQRCode"]; [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL succes 阅读全文
posted @ 2019-06-13 16:08 wj0920wjx 阅读(887) 评论(0) 推荐(0) 编辑
摘要: 场景 正常的替换不能识别反斜杠\ 阅读全文
posted @ 2019-06-13 16:07 wj0920wjx 阅读(3425) 评论(0) 推荐(0) 编辑
摘要: 文件缓存:ETag或Last-Modified判断文件缓存是否有效 如果服务器端的资源没有变化,则自动返回 HTTP 304 (Not Changed.)状态码,内容为空,这样就节省了传输数据量。当服务器端代码发生改变或者重启服务器时,则重新发出资源,返回和第一次请求时类似。从而保证不向客户端重复发 阅读全文
posted @ 2018-04-16 15:25 wj0920wjx 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: #import NSDate 属于Foundation框架 CFAbsoluteTimeGetCurrent() 属于 CoreFoundatio框架 CACurrentMediaTime() 属于 QuartzCore框架 区别在于: NSDate 或 CFAbsoluteTimeGetCurre 阅读全文
posted @ 2018-04-13 09:37 wj0920wjx 阅读(1501) 评论(0) 推荐(0) 编辑
摘要: Java服务端配置,七牛的安全机制我就不多说了,官方文档写的很清楚https://developer.qiniu.com/kodo/manual/1208/upload-token 如何生成上传凭证: 1、下载官方SDK:https://github.com/qiniu/java-sdk 2、将 s 阅读全文
posted @ 2018-04-12 16:35 wj0920wjx 阅读(248) 评论(0) 推荐(0) 编辑
摘要: -(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{ if ([textView isFirstResponder]) { if 阅读全文
posted @ 2018-04-12 13:45 wj0920wjx 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 正常使用字符替换并不能去除通讯录中获取的电话号码中的空格字符,亲测以下方法可以做到 NSString *cleaned = [[phoneString componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSe 阅读全文
posted @ 2018-04-12 13:41 wj0920wjx 阅读(1185) 评论(0) 推荐(0) 编辑
摘要: UIKeyboardTypeDefault, 默认键盘,支持所有字符 UIKeyboardTypeASCIICapable, 支持ASCII的默认键盘 UIKeyboardTypeNumbersAndPunctuation, 标准电话键盘,支持+*#字符 UIKeyboardTypeURL, URL 阅读全文
posted @ 2018-04-12 13:39 wj0920wjx 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 国内 40 多位 iOS 开发博主的博客地址列表:https://github.com/tangqiaoboy/iOSBlogCN 阅读全文
posted @ 2018-04-12 13:39 wj0920wjx 阅读(100) 评论(0) 推荐(0) 编辑