DanziChen

Results 36 issues of DanziChen

``` _addRightCount = [_collectionView indexPathForItemAtPoint:CGPointMake(self.frame.size.width - 1, 0)].row + 1 ; ``` 这行代码执行时,row 的结果永远是 0,导致只会在右边补充 1 个,而当第一个特别短的时候,应该补充 2 个。没有深究究竟为什么会是 0。解决方法是在前面的循环里计算补充个数。 ``` if (contentSize.width < self.frame.size.width) { _addRightCount++; } ```

title: Tutorial: Night Mode Support in iOS 13 and Swift 5 date: tags: categories: permalink: --- 原文链接=https://jamesonquave.com/blog/tutorial-night-mode-support-in-ios-13-and-swift-5/ 作者= 原文日期= 译者= 校对= 定稿=

title: Static and Dynamic Callable Types in Swift date: tags: categories: permalink: --- 原文链接=https://nshipster.com/callable/ 作者= 原文日期= 译者= 校对= 定稿=

title: Device Identifiers and Fingerprinting on iOS date: tags: categories: permalink: --- 原文链接=https://nshipster.com/device-identifiers/ 作者= 原文日期= 译者= 校对= 定稿=

title: Contact Tracing date: tags: categories: permalink: --- 原文链接=https://nshipster.com/contact-tracing/ 作者= 原文日期= 译者= 校对= 定稿=

title: Understanding Higher Order Functions in Swift date: tags: categories: permalink: --- 原文链接=https://www.appcoda.com/higher-order-functions-swift/ 作者= 原文日期= 译者= 校对= 定稿=

> 下面是 PR 模板,使用说明: > 1. 填上对应的 Issue 链接或者 Issue ID > 2. 填上你认为本文阅读需要的时长 > 3. 创建 PR > 4. 可以看到**PR Checklist**部分变成了可以勾选的方框,按照自己的实际情况进行勾选 这篇文章对应的 Issue 链接是:#278 本文的大致阅读时长:[8] 分钟。(这里按照你的主观感受填写即可,不需要非常准确,主要给读者一个参考) PR Checklist: -...

title: Xcode Build Configuration Files date: tags: categories: permalink: --- 原文链接=https://nshipster.com/xcconfig/ 作者= 原文日期= 译者= 校对= 定稿=

title: Introducing Swift Crypto date: tags: categories: permalink: --- 原文链接=https://swift.org/blog/crypto/ 作者= 原文日期= 译者= 校对= 定稿=

title: Secret Management on iOS date: tags: categories: permalink: --- 原文链接=https://nshipster.com/secrets/ 作者= 原文日期= 译者= 校对= 定稿= **注意**,这是一篇 NSHipster 的文章,翻译的要求与其他文章有所不同,并在我们内部完成校对后,按照 NSHipster.cn 的规范提交 PR 到他们的仓库等等;更多翻译细节请参考 [NSHipster翻译说明]( https://github.com/SwiftGGTeam/translation/blob/master/NSHipster%E7%BF%BB%E8%AF%91%E8%AF%B4%E6%98%8E.md)。如有任何疑问,可以在 QQ/微信群里联系“雨谨”。