2021年3月3日
摘要: iOS MQTT链接-双向认证 亲测可用 双向认证方法: 让后台生成 ca.crt 和 client.p12文件(client.p12文件由client.crt和client.key合成) 我使用的是服务自签证书 使用命令行把ca.crt转化为ca.der格式 openssl x509 -in ca 阅读全文
posted @ 2021-03-03 10:22 许广 阅读(558) 评论(0) 推荐(0) 编辑
  2020年3月14日
摘要: 实现UIScrollView子类 #import "EgItemScrollView.h" @implementation EgItemScrollView - (instancetype)init { self = [super init]; if (self) { //子控件响应触摸事件 NO表 阅读全文
posted @ 2020-03-14 15:39 许广 阅读(360) 评论(0) 推荐(0) 编辑
  2020年1月15日
摘要: // 根据年和月获取月份天数 -(NSInteger)monthDayWithYear:(NSInteger) year month:(NSInteger) month{ // 字符串转日期 NSString *dateStr = [NSString stringWithFormat:@"%ld-% 阅读全文
posted @ 2020-01-15 20:50 许广 阅读(613) 评论(0) 推荐(0) 编辑
  2019年8月4日
摘要: 停用规律: 错误5次密码停用1分钟 再错误3次停用5分钟 在错误1次就停用15分钟 再错误1次就是60分钟了,而且还没输入框了,这时候我们要通过按 option,commond这2个按钮来唤起输入框 说明一下, 我是一次按了这2个按钮,就弹出了输入框,具体是按这2个的哪一个就不知道了,凑巧发现按这2 阅读全文
posted @ 2019-08-04 12:05 许广 阅读(3064) 评论(0) 推荐(0) 编辑
  2019年7月5日
摘要: Mac系统版本:MacOS Mojave 10.14.5 vscode:1.36.0 MacOS Mojave 10.14.5 系统自带 PHP 7.1.23 1、开启php sudo vim /etc/apache2/httpd.conf 找到#LoadModule php7_module lib 阅读全文
posted @ 2019-07-05 15:52 许广 阅读(4999) 评论(2) 推荐(0) 编辑
  2019年5月24日
摘要: -(id) InvokingShellScriptAtPath :(NSString*) shellScriptPath { NSTask *shellTask = [[NSTask alloc]init]; [shellTask setLaunchPath:@"/bin/sh"]; NSStrin 阅读全文
posted @ 2019-05-24 01:30 许广 阅读(1143) 评论(0) 推荐(0) 编辑
  2019年3月26日
摘要: MBProgressHUD 默认使用MBProgressHUDBackgroundStyleBlur 类型 MBProgressHUDBackgroundStyleBlur使用了毛玻璃效果 ,我们要把把它选择设为MBProgressHUDBackgroundStyleSolidColor 再设置co 阅读全文
posted @ 2019-03-26 11:13 许广 阅读(1470) 评论(0) 推荐(0) 编辑
  2018年4月20日
摘要: NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init]; formatter.numberStyle = NSNumberFormatterSpellOutStyle; NSString *string = [formatter 阅读全文
posted @ 2018-04-20 13:07 许广 阅读(224) 评论(0) 推荐(0) 编辑
  2017年6月20日
摘要: std::stringstream oss; for(unsigned int i=0;i < buffer->size();i++){ oss<<(*buffer)[i]; } string temp=oss.str(); const char * buf=temp.c_str(); 阅读全文
posted @ 2017-06-20 16:04 许广 阅读(2129) 评论(0) 推荐(0) 编辑
  2017年6月14日
摘要: http://www.cnblogs.com/leehongee/p/3642308.html 阅读全文
posted @ 2017-06-14 12:59 许广 阅读(250) 评论(0) 推荐(0) 编辑