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

2022年10月14日

macOS NSCollectionView简单操作

摘要: 先看效果 最简单的两份文件,复制-生产即可运行 第一份(主要) ViewController.h #import <Cocoa/Cocoa.h> @interface ViewController : NSViewController @end ViewController.m @interface 阅读全文

posted @ 2022-10-14 15:31 高彰 阅读(401) 评论(1) 推荐(0) 编辑

2022年10月12日

播放器m3u8

摘要: https://www.m3u8play.com/ 阅读全文

posted @ 2022-10-12 15:55 高彰 阅读(66) 评论(0) 推荐(0) 编辑

2022年10月11日

macOS 为什么a56爆大奖在线娱乐的NSView委托(delegate)方法没有被调用?

摘要: 现在,方法未被调用,a56爆大奖在线娱乐在做什么错? 最佳答案 如果希望NSView子类接受事件,则必须实现: - (BOOL)acceptsFirstResponder { return YES; } 阅读全文

posted @ 2022-10-11 13:49 高彰 阅读(33) 评论(0) 推荐(0) 编辑

iOS macOS代理传值

摘要: 说明:代理传值一般在反向传值中使用。 本贴的例子是:有A和B两个界面,要实现的效果就是先让A跳转到B,然后B中有个颜色的参数,当B跳转到A时,把这个颜色的参数传递给A,在A中利用这个颜色改变自己界面的颜色。 第1步:在发送者(界面B)中,制定协议(在.h头文件中声明) // @protocol协议名 阅读全文

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

macOS开发 NSSegmentedControl

摘要: 先看效果 直接复制代码运行 #import "ViewController.h" @interface ViewController () ///分段控制器 @property (nonatomic, strong) NSSegmentedControl *MenuViewSegment; @end 阅读全文

posted @ 2022-10-11 09:58 高彰 阅读(142) 评论(0) 推荐(0) 编辑

2022年10月10日

macOS UI颜色

摘要: NSButton if (@available(macOS 10.14, *)) { _btnLeadershipRisingPlate.contentTintColor = NSColorFromName(@"g-appColor"); } else { NSMutableAttributedSt 阅读全文

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

iOS macOS 倒计时计时动作事件

摘要: /* 计时刷新数据 **/ @property (nonatomic, weak) NSTimer *timer; /* 计时 **/ @property (nonatomic, assign) int timerCount; //////////////////////////////////// 阅读全文

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

2022年9月19日

微信小程序背景图片

摘要: /**app.wxss**/ .container { position: fixed; background-size: 100% 100%; height: 100%; width: 100%; background-image: url(https://gimg2.baidu.com/imag 阅读全文

posted @ 2022-09-19 16:21 高彰 阅读(179) 评论(0) 推荐(0) 编辑

微信小程序css屏幕宽高减去100px,便捷注释代码模版

摘要: width:calc(100% - 20px); height:calc(100% - 20px); /* 搜索菜品 start */ /* 搜索菜品 end */ 阅读全文

posted @ 2022-09-19 15:40 高彰 阅读(94) 评论(0) 推荐(0) 编辑

2022年8月16日

微信小程序中slider实现拾色器功能

摘要: 微信小程序中slider实现拾色器功能思路效果图体验代码效果体验思路画板中要实现颜色选择功能,几经周折,效果还可以,整个思路就是:1、利用线性过渡实现slider背景渲染2、获取slider滑块value值3、计算该value值所代表的颜色值并赋值给颜色需求方 效果图 体验体验路径:自定义系列>拾色 阅读全文

posted @ 2022-08-16 17:18 高彰 阅读(1625) 评论(0) 推荐(2) 编辑

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

导航