上一页 1 2 3 4 5 6 7 ··· 36 下一页

2023年8月24日

iOS macOS中的三大计时器(NStimer、CADisplayLink、dispatch_source_set_timer)

摘要: 一、介绍 在iOS macOS中,计时器是比较常用的,用于统计累加数据或者倒计时等,例如手机号获取验证码。计时器大概有那么三种,分别是:NSTimer、CADisplayLink、dispatch_source_set_timer 二、使用 @property (strong,nonatomic)N 阅读全文

posted @ 2023-08-24 15:46 高彰 阅读(161) 评论(0) 推荐(0) 编辑

2023年8月10日

Mac OS 开发中监听键盘事件

摘要: 在iOS开发中,监听键盘比较好找。但是在Mac开发中监听键盘事件比较难找到相应的方法。下面的两个方法就是Mac开发中常用的监听键盘的方法。 //键盘按下时 - (void)keyDown:(NSEvent *)event{ } //键盘弹起时 - (void)keyUp:(NSEvent *)eve 阅读全文

posted @ 2023-08-10 10:44 高彰 阅读(91) 评论(0) 推荐(0) 编辑

2023年8月1日

iOS macOS URL编码和解码过程(UrlEncode)

摘要: 字符串URL编码实现 NSString *urlStr = @"你好0123456789abcxyzABCXYZ-_.~&!*'();:@&=+$,/?#[]% "; //方式一编码对比 NSString *encodingString = [urlStr stringByAddingPercent 阅读全文

posted @ 2023-08-01 16:45 高彰 阅读(456) 评论(0) 推荐(0) 编辑

2023年7月13日

iOS macOS 刷新ViewController或者是ViewController中的NSView

摘要: a56爆大奖在线娱乐遇到的问题是这样的:当ViewController界面或者说是ViewController中的NSView的数据或者是样式由于某个响应事件产生变化时界面需要刷新 那么解题的思路是可以直接先删除掉原有的界面就是 [self removeFromSuperview]; //或者是 [self.sonV 阅读全文

posted @ 2023-07-13 09:33 高彰 阅读(87) 评论(0) 推荐(0) 编辑

2023年7月3日

小米手机通过开机密码进入不同内容的两个系统(系统分身)

摘要: 阅读全文

posted @ 2023-07-03 09:39 高彰 阅读(181) 评论(0) 推荐(0) 编辑

2023年6月15日

关于ios macOS:请在您的Podfile中为此目标指定平台?

摘要: 执行此Pod安装后,出现以下错误: a56爆大奖在线娱乐的PodFile: 如何解决这个问题? 增加一个平台及最低版本即可 这是macOS的,如果是iOS就是 platform :ios, '10.0' target 'TKAPIDemo_mac' do pod 'SocketRocket' end - Pod in 阅读全文

posted @ 2023-06-15 09:47 高彰 阅读(88) 评论(0) 推荐(0) 编辑

/usr/bin/git clone xxx /var/folders/hf/gjb2157j7s99712tnhwsr

摘要: 升级系统后 xcode 的 pod 发生了一些错误,重新执行 pod install 不一定在哪个库 会发生如下错误 [!] Error installing QIYU_iOS_SDK[!] /usr/bin/git clone https://github.com/qiyukf/QIYU_iOS_ 阅读全文

posted @ 2023-06-15 09:42 高彰 阅读(64) 评论(0) 推荐(0) 编辑

2023年6月13日

iOS macOS字符串(日期)样式输出

摘要: 一般的日期输出是NSData -> NSString // 实例化NSDateFormatter NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; // 设置日期格式 [formatter setDateFormat:@"yyy 阅读全文

posted @ 2023-06-13 15:13 高彰 阅读(20) 评论(0) 推荐(0) 编辑

2023年5月26日

Xcode14.3 File not found libarclite_iphonesimulator.a and libarclite_iphoneos.a

摘要: Xcode 14.3 运行项目报错File not found libarclite_iphonesimulator.a or libarclite_iphoneos.a 问题描述 升级到 Xcode14.3 后编译报错:真机运行 ld: file not found: /Applications/ 阅读全文

posted @ 2023-05-26 11:19 高彰 阅读(1356) 评论(0) 推荐(0) 编辑

2023年5月25日

iOS macOS 解决Line XX:StartTag:invalid element Name问题

摘要: 多人开发修改同一个文件,提交git后再拉取容易产生问题,今天就遇到了一个问题:合并完代码后,运行就会直接报Line 19:StartTag:invalid element Name这个错误。研究一下发现是a56爆大奖在线娱乐和同事同时修改了同一个xib文件,出现以上问题,解决办法如下:鼠标右键点击报错的xib文件–》 阅读全文

posted @ 2023-05-25 18:16 高彰 阅读(23) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 36 下一页

导航