03 2022 档案

iOS UISearchBar搜索框
摘要:#import "ViewController.h" @interface ViewController ()<UISearchBarDelegate> /** 搜索框 */ @property (nonatomic, weak) UISearchBar *searchBar; @end @impl 阅读全文

posted @ 2022-03-25 15:53 高彰 阅读(90) 评论(0) 推荐(0) 编辑

macOS开发 NSTextField控件 macOS中并没有 UILable ,也没有 NSLabel
摘要:macOS中的 label 实际上是 NSTextField,并将editable = NO; 来实现显示效果。这是不是和 iOS 中的UITextView 很像呢? -(void)viewDidLoad { [super viewDidLoad]; NSTextField *lbl = [[NST 阅读全文

posted @ 2022-03-10 15:26 高彰 阅读(621) 评论(0) 推荐(0) 编辑

macOS开发 设置鼠标放在控件上是否有小手
摘要:1.ViewController.m引入头文件 #import "ViewController.h" #import "VC1.h" 2.ViewController.m控件调用,用NSView举例 - (void)viewDidLoad { [super viewDidLoad]; VC1 *vi 阅读全文

posted @ 2022-03-10 14:37 高彰 阅读(173) 评论(0) 推荐(0) 编辑

macOS 预览和截屏 关于上架app store的有效截图尺寸
摘要:说一堆还不如一张图明了 上图 宽 x 高 单位是像素 阅读全文

posted @ 2022-03-09 13:51 高彰 阅读(208) 评论(0) 推荐(0) 编辑

macOS WKwebview的简单实现
摘要:1.最简单的,只显示内容没有交互。 复制代码即可运行,可拖拽窗口。 #import "ViewController.h" #import <WebKit/WebKit.h> @interface ViewController () @property (nonatomic,strong)WKWebV 阅读全文

posted @ 2022-03-09 10:43 高彰 阅读(1075) 评论(0) 推荐(0) 编辑

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

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

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

posted @ 2022-03-08 10:45 高彰 阅读(1355) 评论(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 高彰 阅读(1058) 评论(0) 推荐(0) 编辑

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 高彰 阅读(644) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示