From 76bf3d07e293146d41964c872581c9bfa323251a Mon Sep 17 00:00:00 2001 From: haoio Date: Thu, 5 Jun 2014 01:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chapter3/Swift and Objective-C in the Same Project.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Using Swift with Cocoa and ObjectiveC/chapter3/Swift and Objective-C in the Same Project.md b/Using Swift with Cocoa and ObjectiveC/chapter3/Swift and Objective-C in the Same Project.md index c160cd20..b33cbaae 100644 --- a/Using Swift with Cocoa and ObjectiveC/chapter3/Swift and Objective-C in the Same Project.md +++ b/Using Swift with Cocoa and ObjectiveC/chapter3/Swift and Objective-C in the Same Project.md @@ -12,7 +12,7 @@ Objc 和 Swift 文件可以在一个工程中并存,不管这个工程原本 混合语言的工作流程只有一点点区别,这取决于你是在写应用还是写框架。下面描述了普通的用两种语言在一个 target 中导入模型的情况,后续章节会有更多细节。 -![DAG_2x.png](https://github.com/haolloyin/the-swift-programming-language-in-chinese/blob/master/Using Swift with Cocoa and ObjectiveC/chapter3/DAG_2x.png?raw=true) +![DAG_2x.png](https://raw.githubusercontent.com/haolloyin/the-swift-programming-language-in-chinese/translate/Using%20Swift%20with%20Cocoa%20and%20ObjectiveC/chapter3/DAG_2x.png?raw=true) ## Importing Code from Within the Same App Target - 在同个应用的 target 中导入 @@ -22,7 +22,7 @@ Objc 和 Swift 文件可以在一个工程中并存,不管这个工程原本 在一个应用的 target 中导入一些 Objc 文件供 Swift 代码使用时,你需要依赖与 Objc 的桥接头文件(`bridging header`)来暴露给 Swift。当你添加 Swift 文件到现有的 Objc 应用(或反之)时,Xcode 会自动创建这些头文件。 -![bridgingheader_2x.png](https://github.com/haolloyin/the-swift-programming-language-in-chinese/blob/master/Using Swift with Cocoa and ObjectiveC/chapter3/bridgingheader_2x.png?raw=true) +![bridgingheader_2x.png](https://raw.githubusercontent.com/haolloyin/the-swift-programming-language-in-chinese/translate/Using%20Swift%20with%20Cocoa%20and%20ObjectiveC/chapter3/bridgingheader_2x.png?raw=true) 如果你同意,Xcode 会在源文件创建的同时生成头文件,并用 product 的模块名加上 `-Bridging-Header.h` 命名。关于 product 的模块名,详见 [Naming Your Product Module](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-XID_85)。