摘要: 主菜单不能直接通过拖动在ViewController连接事件,需用通过First Responder连接。 1、ViewControll创建Acion事件 2、选中菜单,拖动Send Actions到First Responder,在弹出的事件列表中选择对应的事件 阅读全文
posted @ 2026-03-04 17:13 大强跑了 阅读(1) 评论(0) 推荐(0)
摘要: 1、info.plist添加 <key>UIRequiresFullScreen</key><true/> 2、设置显示方向,全部勾选 阅读全文
posted @ 2025-10-17 15:53 大强跑了 阅读(23) 评论(0) 推荐(0)
摘要: QLabel默认不支持点击事件,但可以通过捕捉鼠标事件实现点击处理。 1、通过eventFilter事件过滤器 self.labelSignUp.installEventFilter(self) def eventFilter(self, obj, event): """重写事件过滤器""" # 判 阅读全文
posted @ 2025-10-09 14:25 大强跑了 阅读(133) 评论(0) 推荐(0)
摘要: 添加项目所有文件 git add . 将文件添加到仓库 git commit -m "本次提交的说明" 本地代码库与远程代码库相关联 进入本地目录,输入git init 初始化本地仓库 git remote add origin https://gitee.com/用户名/仓库名 强制把远程仓库的代 阅读全文
posted @ 2025-09-04 16:10 大强跑了 阅读(6) 评论(0) 推荐(0)
摘要: 不想升级到最新版本的系统,寻找当前系统下安装vapor的方法。 什么是vapor https://docs.vapor.codes/zh/getting-started/hello-world/ 当前系统环境: macos: 12.3.1 swift: 5.6.1 下载支持swift5.5版本的va 阅读全文
posted @ 2025-08-10 16:33 大强跑了 阅读(9) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/sdnuwjw/article/details/113873471 阅读全文
posted @ 2025-08-09 21:23 大强跑了 阅读(24) 评论(0) 推荐(0)
摘要: 系统版本是12.3,用这个方法管用,先记录下来,有时间整理一下。 https://www.jianshu.com/p/31b88efffaf9 阅读全文
posted @ 2025-08-05 12:25 大强跑了 阅读(41) 评论(0) 推荐(0)
摘要: rm -r icons.iconset mkdir icons.iconset sips -z 16 16 cangshu.png -o icons.iconset/icon_16x16.png sips -z 32 32 cangshu.png -o icons.iconset/icon_16x1 阅读全文
posted @ 2025-08-01 13:50 大强跑了 阅读(72) 评论(0) 推荐(0)
摘要: 一直以来都用NSLog输出日志,没有做任何处理。既影响性能,还容易泄漏数据。 问deepseek,可以用宏定义控制日志是否打印,增加一个开关,调试时打开,发布时关闭,非常方便。 // 在全局头文件中定义(如 PrefixHeader.pch) #define ENABLE_DEBUG_LOG 0 / 阅读全文
posted @ 2025-07-31 16:51 大强跑了 阅读(15) 评论(0) 推荐(0)
摘要: 几年没写AppleScript,完全忘了怎么用,连怎样查看UI元素都忘记了。 问了AI,有以下几个工具: 1、脚本编辑器 2、UI Browser 3、Accessibility Inspector (Xcode下的工具) Accessibility Inspector有些程序不兼容,没有效果。 还 阅读全文
posted @ 2025-07-29 21:00 大强跑了 阅读(56) 评论(0) 推荐(0)