wangkun2012324's recent timeline updates
wangkun2012324

wangkun2012324

V2EX member #182563, joined on 2016-07-19 17:29:58 +08:00
wangkun2012324's recent replies
Oct 27, 2025
Replied to a topic by qdwang Apple 苹果现在 bug 越来越多的原因找到了
swift 的数组,包括之前吐槽的 string, 一切源于 collection 的设计,collection 的 startIndex 和 endIndex, swift 一致期望用户不使用整数索引,你查看数组的一些排序算法等你会发现根本不是数组的方法,而是 collection 甚至别的 sequence 的各种方法,并且不是所有。
设计者在做通用的 collection 算法时,https://forums.swift.org/t/rant-indexing-into-arrayslice/14105/14 决定了 Array Slice 这么做。其实我认为这么做之后,array[1]这种风格的写法, 只是 swift 数组只是恰好对的写法,因为 Array.Index 是 Int 。string[1]就不对了。吐槽也是合理的。毕竟是常见的语法,违反直觉的语义
Oct 27, 2025
Replied to a topic by qdwang Apple 苹果现在 bug 越来越多的原因找到了
正确的用法永远是使用 startIndex 和 offset/advanced
```
var hello = [10, 20, 30, 40, 50, 60]
var foo = hello[2..<5] // 表示索引范围是 2 ,3 ,4
foo[foo.startIndex.advanced(by: 2)] = 0
print(foo) // [30, 40, 0]

```
Feb 25, 2025
Replied to a topic by Liamccc 前端开发 真诚求教,现在好用的跨端方案。
@kongcc 我认为成本有限的情况可选方案很少,根据团队配置选 flutter 或者 react native 。就算哪天华为突然不做兼容了,那么鸿蒙原生就好了。如果考虑小程序,那么只有 uniapp ,但是我认为这个坑比前面两个大多了。
Feb 24, 2025
Replied to a topic by Liamccc 前端开发 真诚求教,现在好用的跨端方案。
@wangkun2012324 哦,我看错了,忽略我
Feb 24, 2025
Replied to a topic by Liamccc 前端开发 真诚求教,现在好用的跨端方案。
@tutou 我知道这个 3.22 版本,我以为这个版本成熟了,会迁移到主仓库呢。以后都用这个了吗。也不给个公告
Feb 24, 2025
Replied to a topic by Liamccc 前端开发 真诚求教,现在好用的跨端方案。
我们是用 flutter ,不过刚刚貌似天快塌了,https://gitee.com/openharmony-sig/flutter_flutter 刚发现仓库关闭了,华为真 tm
Oct 27, 2021
Replied to a topic by skyfrere macOS 升级完 Monterey,系统释放了不少硬盘空间
每次装系统都会删掉前一个系统创建的各种索引和缓存,然后慢慢新系统会吃掉硬盘空间。其实一点也没多,反观 mac 系统占用空间一直都比 windwos 大
Oct 26, 2021
Replied to a topic by Yest192 Apple 新款 mbp M1 pro/max 媒体解禁啦,快去看测评吧
机身感官很厚
情形 1,不存在一对多关系,多种 cell 对多个 xib 就是,和 viewcontroller 没有关系
情形 2,如果用 Xib/SB 这种想复用,那么必然细化,如果你的 ViewController Class 持有了各种逻辑,那么要么使用继承 xib 对应 一个 FatherViewController,两个子 viewController,要么直接 Xib 只对应 View,两个 viewController load 同一个 View
@rockzhou8 直接用光猫背面的账号密码登录 192.168.1.1:8080
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   940 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 21:26 · PVG 05:26 · LAX 14:26 · JFK 17:26
♥ Do have faith in what you're doing.