Perspective icon indicating copy to clipboard operation
Perspective copied to clipboard

📝 Write something with perspectives.

Results 37 Perspective issues
Sort by recently updated
recently updated
newest added

# Translation - [译]关于 App 启动顺序 作者 | 原文链接 --- | --- Apple Inc. | [About the App Launch Sequence](https://developer.apple.com/documentation/uikit/core_app/managing_your_app_s_life_cycle/responding_to_the_launch_of_your_app/about_the_app_launch_sequence) 学习在启动时的代码执行顺序。 - **框架** - UIKit --- ## 概览 一个 App...

[Translation]

# Translation - [译]为 App 执行一次性设置 作者 | 原文链接 --- | --- Apple Inc. | [Performing One-Time Setup for Your App](https://developer.apple.com/documentation/uikit/core_app/managing_your_app_s_life_cycle/responding_to_the_launch_of_your_app/performing_one-time_setup_for_your_app) 确保 App 环境被正确配置。 - **框架** - UIKit --- ##...

[Translation]

## Preface ## Optional 与 Nullability - 在大多数项目中,我们都是在中途决定转向 Swift,Swift 中比较核心且常见的概念便是 Optional,可选类型,而这与 Obj-C 中的概念不大相同。在 Swift 中使用 Obj-C 桥接的属性(特别是 Block)时,尤其要注意:Obj-C 默认属性将被转换为隐式解包类型(`SomeClass!`),而在 Swift 中这代表开发者要保证值不为 `nil`,编译器将不再提示。当属性是 Block 时,若直接调用了为 `nil` 的 Closure 时,将会出现崩溃。 | Obj-C...

[Practice]

## Unable to boot device in current state: Creating - Xcode: 9.4.1 - macOS: 10.13 - 在使用模拟器或者 `xcodebuild test` 时可能会出现此问题。 ### Solution - 使用 `xcrun simctl list` 命令列出所有模拟器机型,用 `xcrun simctl...

[Tips]

| Date | Notes | |:-----:|:-----:| | 2018-12-03 | 首次提交 | ## Preface 翻看过 Swift 在 GitHub 开源仓库的同学一定会见过「.swift.gyb」结尾的文件。其中的内容不像是纯 Swift 语法的代码,但又似乎遵循了某些格式,那么 GYB 是什么呢? ![Codable.swift.gyb](https://raw.githubusercontent.com/kingcos/Perspective/writing/Posts/Tips/Swift_GYB/1.png) ## What GYB,全称 Generate Your Boilerplate。译成中文是「模版生成」,重点就在于「Boilerplate」。举个例子,在编写一门编程语言时,整型可能根据占据的不同大小内存以及有无符号而非为 Int,Int8,Int16,Int32,Int64,UInt,UInt8,UInt16,UInt32,UInt64...

[Tips]

作者 | 发表时间 | 原文链接 --- | --- | --- JP Simard | 20140706 | [Uncovering SourceKit](https://www.jpsim.com/uncovering-sourcekit/) > 为了支持一门[奇特的新编程语言](http://developer.apple.com/swift)(译者注:即 Swift),漂亮的[实时 IDE](https://developer.apple.com/library/prerelease/ios/recipes/xcode_help-source_editor/ExploringandEvaluatingSwiftCodeinaPlayground/ExploringandEvaluatingSwiftCodeinaPlayground.html) 特性,以及令人印象深刻的[跨语言协同性](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html)(译者注:即 Swift 与 Obj-C),Apple 不得不开发一些新的底层工具。这里我们将专注于 SourceKit,Xcode 背后的功臣。 ![SourceKitSidekick 暂时披着披肩](https://www.jpsim.com/images/posts/sidekick.jpg)...

[Translation]

| 原发布时间 | 原发布平台 | 原链接 | |:---:|:---:|:---:| | 2015.04.03 | 博客 | [http://maimieng.com/2015/3/](http://maimieng.com/2015/3/) | > Count On Me 是一首很暖心的歌(原唱 Bruno Mars)。 Connie Talbot 的翻唱的却充满童真, 让我们一起欣赏下吧~ > 今天歌曲推荐出来的,真的很好听,歌词也很棒,十分暖心,虽然不是专业英语,也没有多高的文学素质,不过用心翻译了下,希望大家可以和自己的朋友都能好好的~ Count On...

[Translation]

| Date | Notes | Hadoop | Other | |:-----:|:-----:|:-----:|:-----:| | 2017-03-27 | 首次提交 | 2.7.2 | Docker CE, IntelliJ IDEA 2016.3 | ## Preface 自从学习 iOS/Swift 以来,就没有太多时间分配给 Java 专业课,毕竟我不是个三心二用还能样样学好的人。不过作为大三的专业课,分布式计算技术还是有去上课的,毕竟不能最后挂科吧...

[Practice]

| Platform | Supervisor | |:-----:|:-----:| | macOS 10.13.4 | 3.3.4 | | Raspbian 4.14 | 3.3.1 | ## Info Supervisor 是 Linux/UNIX 下的一个由 Python 编写的进程管理工具,可以很方便的用来启动、重启、关闭进程。 ## Solution ### Installation...

[Tips]

| Xcode | macOS | |:-----:|:-----:| | 10 beta 2 | 10.14 beta 2 | ## $(TeamIdentifierPrefix) - Xcode 10 已知 Bug,无法自动替换。 ### Workaround - 可以手动将 entitlements 文件的 `Pass Type...

[Tips]