上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 38 下一页

2022年3月8日

macOS获取屏幕窗口大小,获取宽度占窗口一半

摘要: 鸣谢简书作者:原来你是这种花椒 就像iOS获取设备大小一样,macOS的窗口大小就是我们所需要的代码。 self.view.bounds.size.width self.view.bounds.size.height 如果项目中使用Masonry插件,要获取当前view的宽度那就是,高度同宽度修改即 阅读全文

posted @ 2022-03-08 14:55 高彰 阅读(922) 评论(0) 推荐(0)

ios/macOS上metal技术笔记

摘要: ios12之后,metal被推上来,opengles被挤下去。在apple开发平台上,未来是metal的,opengl终将退出历史舞台。作为一个图形图像方面的技术从业者,这个时候,开始学习metal,是晚不是早。但better late than never,让我们开始吧。 此处致敬Wentao S 阅读全文

posted @ 2022-03-08 10:45 高彰 阅读(1427) 评论(0) 推荐(0)

macOS 中缺少Info.plist,修改entitlements文件是错误的The LaunchServices launcher has returned an error. Please check the system l

摘要: The LaunchServices launcher has returned an error. Please check the system l 出现这个错误是因为你修改了entitlements文件,这里虽然是plist文件的一种,但是并不是Info.plist,所以会报错。 Info.p 阅读全文

posted @ 2022-03-08 09:49 高彰 阅读(1108) 评论(0) 推荐(0)

2022年3月7日

macOS Hardened Runtime is not enabled.must be rebuilt with support for the Hardened Runtime

摘要: "x x x.app" must be rebuilt with support for the Hardened Runtime. Enable the Hardened Runtime capability in the project editor, test your app, rebuil 阅读全文

posted @ 2022-03-07 17:25 高彰 阅读(741) 评论(0) 推荐(0)

2022年1月27日

Cornerstone已损坏,无法打开。 您应该将它移到废纸篓。

摘要: 按照以下步骤执行即可: 1、打开终端,一般在:启动台-其他-终端,或者直接用搜索 2、输入: sudo spctl --master-disable,按回车键 3、输入密码,按回车键 4、继续输入:sudo xattr -r -d com.apple.quarantine /Applications 阅读全文

posted @ 2022-01-27 17:44 高彰 阅读(588) 评论(0) 推荐(0)

2022年1月26日

Mac下更新Python3

摘要: mac自带的python版本是2.7以下,不能满足我开发的要求 terminal下通过如下命令安装 brew install python3 若没有权限,一定会报异常 Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks 解决办 阅读全文

posted @ 2022-01-26 18:32 高彰 阅读(552) 评论(0) 推荐(0)

Mac 错误提示:zsh: command not found: brew解决方法

摘要: Mac平台出现brew command not found问题解决方法 错误提示:zsh: command not found: brew 解决方法:mac 安装homebrew, 用以下命令安装,序列号选择中科大(1)的 /bin/zsh -c "$(curl -fsSL https://gite 阅读全文

posted @ 2022-01-26 18:31 高彰 阅读(2709) 评论(0) 推荐(0)

2022年1月24日

iOS 防止用户重复点击按钮多次请求

摘要: /** 点击了导航栏右边按钮点击事件 */ - (void)rightItemClicked { self.rightItem.enabled = NO; [self performSelector:@selector(changeButtonStatus) withObject:nil after 阅读全文

posted @ 2022-01-24 16:58 高彰 阅读(530) 评论(0) 推荐(0)

2022年1月11日

iOS 导航栏返回把样式带回前面怎么办

摘要: //设置当前页面导航栏 - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; // 让导航栏背景透明 self.navigationController.navigationBar.tintColor = [ 阅读全文

posted @ 2022-01-11 11:13 高彰 阅读(57) 评论(0) 推荐(0)

2022年1月4日

iOS 中UIButton中文字换行

摘要: UIButton *button =[[UIButton alloc]initWithFrame:CGRectMake(100, 100, 200, 40)]; button.backgroundColor = [UIColor redColor]; [button setTitle:@"我是Che 阅读全文

posted @ 2022-01-04 14:52 高彰 阅读(560) 评论(0) 推荐(0)

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 38 下一页

导航