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

2023年3月2日

iOS 过滤字符串

摘要: //a56爆大奖在线娱乐去掉字符串中的/符号 sysdate:[[self Gettime:strbegindate] stringByReplacingOccurrencesOfString:@"/" withString:@""]]; 阅读全文

posted @ 2023-03-02 09:16 高彰 阅读(33) 评论(0) 推荐(0) 编辑

2023年2月8日

MAC 不带XIB新建ViewController

摘要: - (void)loadView{ NSView *view = [[NSView alloc]init]; self.view = view; } MAC 开发的小伙伴 阅读全文

posted @ 2023-02-08 17:32 高彰 阅读(21) 评论(0) 推荐(0) 编辑

2023年1月26日

flutter Color和colors

摘要: “Color(颜色)”是a56爆大奖在线娱乐们在设置应用程序界面样式时最常用到的属性。 Flutter 中颜色设置的方式有很多种,其中最常用的有下列几种: Color c1 = Color(0xFF0099ff); Color c2 = Color.fromRGBO(60, 170, 250, 1); Color c 阅读全文

posted @ 2023-01-26 17:07 高彰 阅读(409) 评论(0) 推荐(0) 编辑

2023年1月21日

微信小程序JS遇到【object object 】怎么打印?js如何打印object对象

摘要: console.log(JSON.stringify(user));或者打印的时候直接 console.log(user);不要出现‘“”‘+这些符号 阅读全文

posted @ 2023-01-21 16:03 高彰 阅读(683) 评论(0) 推荐(0) 编辑

2022年12月29日

微信小程序顶部透明

摘要: { "pages": [ "pages/index/index" ], "window": { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "Wei 阅读全文

posted @ 2022-12-29 15:34 高彰 阅读(224) 评论(0) 推荐(0) 编辑

2022年12月12日

macOS 开发 NSView添加鼠标监控

摘要: 一、鼠标点击事件响应流程简述: 1.鼠标硬件先接收到用户点击;2.然后交给鼠标驱动来处理,这个驱动是在Mac OS X内核运行的;3.处理完就通过I/O Kit传递给window sever的事件队列。4.而window server则负责分派这些事件到对应进程的run-loop. 二、步骤 1.自 阅读全文

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

2022年11月22日

macOS NSView改变frame后会出现黑色残留,应付的办法是不在drawRect上修改重新initWithFrame一下就行

摘要: 黑色部分就是残留。是因为绘制后保留了轨迹。 解决办法是不在drawRect中做处理重新写NSView,新增方法 initWithFrame - (void)drawRect:(NSRect)dirtyRect { [super drawRect:dirtyRect]; //cocoa方法的改变背景颜 阅读全文

posted @ 2022-11-22 16:33 高彰 阅读(78) 评论(0) 推荐(0) 编辑

2022年11月16日

微信小程序搜索排名权重!

摘要: 最后,再介绍一下排名权重的计算比例: 1、小程序上线时间(占比5%) 2、描述中完全匹配出现关键词次数越多,排名越靠前(10%) 3、标题中关键词出现1次,且整体标题的字数越短,排名越靠前(35%) 4、微信小程序用户使用数量越多,排名越靠前(占比50%) 阅读全文

posted @ 2022-11-16 17:09 高彰 阅读(399) 评论(0) 推荐(0) 编辑

2022年10月31日

iOS MacOS 系统时间(时间戳)格式化

摘要: #pragma mark -原始数据是20220608155116,加工成2022/06/08 15:51:16 -(NSString *)timeString:(NSString *)toIndexstring{ NSMutableArray *arr = [NSMutableArray arra 阅读全文

posted @ 2022-10-31 17:45 高彰 阅读(143) 评论(0) 推荐(0) 编辑

2022年10月17日

macOS NSScrollView简单使用

摘要: 先看图片 这里是NSScrollView配合其他控件使用,a56爆大奖在线娱乐们这里只讲NSScrollView。 复制以下代码即可以运行 @interface ViewControl () /** 滚动显示 */ @property (nonatomic, strong) NSScrollView *scrollV 阅读全文

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

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

导航