![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Xcode
「已注销」
不使用私信
世界最大代码托管平台的用户名为Yang-Xijie
展开
-
Swift|parallel for loops
在我们使用for循环的时候,其中的语句总是在前一个for完成之后才执行下一个。当执行大批量任务时,如果其中的任务相互独立,可以使用DispatchQueue.concurrentPerform来使用多线程平行的同步执行这些任务来节省时间。 // main.swift import Foundation let start = CFAbsoluteTimeGetCurrent() var array = [Int](repeating: 0, count: 60_000_000) // 60_000_原创 2021-12-20 11:58:18 · 1620 阅读 · 0 评论 -
Xcode 新建开发模块
Xcode 新建开发模块 背景 开发app的时候,最终发布的应用只会有一个。但是在实际编写app的过程中,我们经常需要有一个测试版app。 步骤 〇 1 添加一个Build Configuration Project -> Info -> Configurations -> + -> Dev 〇 2 新建Schema,并使用刚刚建好的Build Configuration Product -> Scheme -> New Scheme... Edit -> Run/原创 2021-10-08 14:06:14 · 331 阅读 · 0 评论 -
Xcode | 自定义新建文件注释
打开Finder,⇧⌘G 前往 ~/Library/Developer/Xcode/UserData 创建或修改IDETemplateMacros.plist的内容为: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version原创 2021-08-11 11:22:03 · 628 阅读 · 0 评论 -
Apple Developer Notes | Data Essentials in SwiftUI
Apple Developer Notes | Data Essentials in SwiftUI Instantiate a Model Object in a View Connect data to show in views with data defined in Model. Model class: class Book: ObservableObject { /// @Published: Once title changed, Views related with Book refre原创 2021-06-09 22:56:28 · 134 阅读 · 2 评论 -
Usually Used Menu and Shortcuts in Xcode 12.4
File New File ⌘ N Save ⌘ S Save All ⌥ ⌘ S Close Tab ⌘ W Close Other Tabs ⌥ ⌘ W Close Window ⇧ ⌘ W Add File ⌥ ⌘ N Export File Show File in Finder Open Project ⌘ O Edit View Show Library ⇧ ⌘ L Show Code Review ⌥ ⇧ ⌘ ↩︎ (Git) Editor Show Related Items ⌃ 1 Sho原创 2021-01-29 16:10:56 · 118 阅读 · 0 评论