哈呜.王

啊,发现一只野生程序员!(๑•̀ㅂ•́)و✧

  • 开发
  • 运维
  • 杂事
  • Me
开发

SwfitUI 进阶 – View 与 NSView 互相转换

哈呜
2020年10月10日
No Comments

开发环境: macOS 10.15.5 Xcode 11.7 我其实挺喜欢 SwiftUI 的,首先 Swift 语言代码简练,SwfitUI 可以直接用代码进行布局且方便预览,很符合现代开发的习惯。而不是像 Objective-C 那样,…

SwiftUI Read more
开发

SwiftUI 进阶 – 推送消息到通知中心

哈呜
2020年10月3日
No Comments

注意:不管程序是 foreground running, background running 还是 not running,只要在通知中心添加了“推送请求”,那么通知中心就可以到点触发该通知的推送。 1、本地通知 直接上代码吧 impor…

SwiftUI Read more
开发

SwiftUI Bug – onHover() 导致内存泄漏(View 结构体实例不被释放)

哈呜
2020年10月2日
No Comments

环境: macOS 10.15.5 Xcode 11.7 现象: 如果对一个 View 视图使用了 onHover() 修饰器,那么会导致该视图,乃至包裹该视图的最外层视图都不会被释放。 这应该是 SwiftUI 的一个 Bug,但是什么时…

SwiftUI Read more
开发

SwiftUI 进阶 — 计时器 Timer 以及 如何在 View 中监听 NSWindow 事件

哈呜
2020年8月5日
No Comments

Base on macOS 10.15, Xcode 11.7. 一、计时器 Timer 与 TimerPublisher 1.1 Timer 与 TimerPublisher 的基本用法 如果我们想实现一个简单的程序用来显示当前系统时间,…

SwiftUI Read more
开发

SQLite.swift 的类型扩展 — 存储 UUID 的二进制值

哈呜
2020年7月27日
No Comments

首先要知道 SQLite 只支持如下五种存储类型: 存储类 描述 NULL 值是一个 NULL 值。 INTEGER 值是一个带符号的整数,根据值的大小存储在 1、2、3、4、6 或 8 字节中。 REAL 值是一个浮点值,存储为 8 字节…

sqlite swift SwiftUI Read more
开发

NSWindow 无标题栏窗口无法获得焦点与 resize 鼠标指示的解决办法

哈呜
2020年7月26日
No Comments

Base on macOS 10.15, Xcode 11.7. 在 macOS 程序中,对 NSWindow 实例可以通过删除 NSWindow.StyleMask.titled 属性来设置窗口为无标题栏窗口。 // 方法一:实例化时通过…

swift SwiftUI Read more
开发, 运维

Linux 三种设置环境变量的方法

哈呜
2020年7月21日
No Comments

一、命令前置的临时环境变量 网上一搜一大把都是说 export 命令与 .bash_profile 文件的,却鲜有人提及可以在命令行语句前设置临时环境变量,并且该变量只对当前语句有效。 # usage: var=value [var2=va…

linux Read more
开发

Carthage 依赖管理工具的使用

哈呜
2020年7月20日
No Comments

快速上手 1. 安装 carthage brew install carthage 2. 创建依赖文件 在项目根目录下创建 Cartfile 文件。在文件中写入依赖,比如: github "Alamofire/Alamofire" ~&gt…

swift Read more
开发

SwiftUI 入门 — 系统状态栏程序

哈呜
2020年7月18日
No Comments

基于 Xcode Version 11.5 1. 新建项目 输入项目名称,选择 SwiftUI,选择 Core Data。 因为用到了 Core Data,这里需要修改自动生成的 AppDelegate.swift 中的一行 BUG 语句(…

swift SwiftUI Read more
开发

SwiftUI 入门

哈呜
2020年7月16日
No Comments

SwiftUI  的官方入门教程:Creating and Combining Views 不得不说我觉得这个教程看起来很好但是实际真不咋滴,只说怎么用,不说为什么这么用,根本不考虑初学者的感受。另外该教程应该是 WWDC 2019 发布的…

swift SwiftUI Read more
  • « Previous
  • Next »

近期文章

  • IIS 重叠回收可能导致全局的 Application_Start 函数“不触发”
  • CTF 流量分析
  • python 正则匹配任意字符的一个坑
  • Sublime Text 修改插件代码
  • 鼠须管输入法配置
  • SwiftUI – withAnimation 和 AnyTransition. animation() 的区别
  • SwiftUI – 奇怪的 NSColorPanel
  • SwiftUI Bug – PlainButtonStyle Button 触发次数异常

分类

  • 开发
  • 杂事
  • 运维

标签

.NET codeigniter composer curl dnsmasq docker freemarker hibernate homebrew http https IIS imagick ios ipv6 java javascript kafka laravel linux nginx Node.js php pomelo PostgreSQL python qt raspi redis Rime selenium snmp spring sqlite squid stunnel swift SwiftUI vue Wireshark 图像处理 安全 并发 数据库 爬虫

归档

Copyright © 2022 哈呜.王 | Theme by: Theme Horse | Powered by: WordPress