最新发布第7页
What is an asynchronous function?什么是异步函数?-Stewed Noodles 资源

What is an asynchronous function?什么是异步函数?

Although Swift functions are synchronous by default, we can make them asynchronous by adding one keyword: async. Inside asynchronous functions, we can call other asy...
利用 buildx 构建多架构镜像-Stewed Noodles 资源

利用 buildx 构建多架构镜像

由于使用的是 M1 型号的 Mac 电脑,docker 构建出来的镜像是 ARM 架构的。如果要构建其他架构的镜像,需要使用 docker 的 buildx 插件。 ARM 架构的 Docker 镜像 启用 buildx 插件 buildx 插件...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX10个月前
0510
视图传递-Stewed Noodles 资源

视图传递

使用初始化器传递数据 struct ContentView: View { var body: some View { NavigationView { NavigationLink(destination: DetailView(text: '来自 ContentView 的您好')) { Text('转到详细视图...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX1年前
0500
Adapter 适配器-Stewed Noodles 资源

Adapter 适配器

Adapter Adapter 对象充当 AdapterView 与其底层数据之间的桥梁。Adapter 负责提供对数据项的访问。 基本使用 页面布局 <?xml version='1.0' encoding='utf-8'?> <androidx.constraintlay...
动画(三) - 动画协议-Stewed Noodles 资源

动画(三) – 动画协议

SwiftUI 属性动画系统的核⼼是 Animatable 协议。这个协议可以被视图和视图修饰符所实现,它们通过该协议把可以进⾏动画的属性暴露给SwiftUI。 这个协议唯⼀的要求是⼀个 animatableData 属性,...
语法(五) – 解构-Stewed Noodles 资源

语法(五) – 解构

解构是一种将数据从元组转入和转出的智能方法,它主要有三种用途: 将一个元组分解成多个值; 同时分配多个值 切换值 元组元素的访问 let data = ('one', 'two', 'three') // 普通变量赋值方式 ...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX2年前
0496
Github 访问慢解决方案-Stewed Noodles 资源

Github 访问慢解决方案

修改 host 文件host 文件位置host 文件在每个系统上的位置不一样Windows:C:\Windows\System32\drivers\etc\hostsLinux:/etc/hostsmacOS:/etc/hostswindows 使用记事本打开,Linux 以及 macOS...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX2年前
0490
OpenCV 介绍及安装-Stewed Noodles 资源

OpenCV 介绍及安装

OpenCV 全称 Open Compute Vision(开源 计算机视觉 1)。 用途 OpenCV 用途 macOS 环境搭建 # 安装 python 可以指定不同版本 brew install python@3.9 # 安装相关依赖 # numpy 处理矩阵 # matp...
How to create and use an actor in Swift 如何在 Swift 中创建和使用 actor-Stewed Noodles 资源

How to create and use an actor in Swift 如何在 Swift 中创建和使用 actor

Creating and using an actor in Swift takes two steps: create the type using actor rather than class or struct, then use await when accessing its ...
工单及流程删除-Stewed Noodles 资源

工单及流程删除

此处工单的删除以抢修工单为例,目标是删除抢修工单的表单以及流程待办信息。 关联信息查询 工单信息 工单主表查询 # 工单主表信息查询 SELECT * FROM mt674589329401577541 WHERE f_id IN ( '7...