- Hands-On Design Patterns with Swift
- Florent Vilmart Giordano Scalzo Sergio De Simone
- 130字
- 2021-07-02 14:45:13
Working with Objective-C in a Mixed Code Base
Swift builds upon the strong heritage of Objective-C. When Apple released the first version of Swift, they also reassured all developers that their Objective-C code bases would be able to integrate Swift progressively thanks to a strong interoperability layer. Even today, many applications haven't fully migrated to Swift, and interoperability is key to ensure that the Objective-C code isn't bringing instability and unsafe types into your shiny Swift modules.
In this chapter, we'll have a look at techniques to write safer Objective-C code:
- How to import Swift code in Objective-C and vice versa
- How to add nullability to Objective-C
- How to expose renamed methods to Swift
- How to leverage lightweight generics in Objective-C
- How the Cocoa design patterns translate in Swift
推薦閱讀
- Redis使用手冊(cè)
- ETL數(shù)據(jù)整合與處理(Kettle)
- Architects of Intelligence
- 企業(yè)大數(shù)據(jù)系統(tǒng)構(gòu)建實(shí)戰(zhàn):技術(shù)、架構(gòu)、實(shí)施與應(yīng)用
- Learning JavaScriptMVC
- Spark核心技術(shù)與高級(jí)應(yīng)用
- 數(shù)據(jù)挖掘原理與SPSS Clementine應(yīng)用寶典
- “互聯(lián)網(wǎng)+”時(shí)代立體化計(jì)算機(jī)組
- ZeroMQ
- SQL優(yōu)化最佳實(shí)踐:構(gòu)建高效率Oracle數(shù)據(jù)庫(kù)的方法與技巧
- 大數(shù)據(jù)數(shù)學(xué)基礎(chǔ)(R語(yǔ)言描述)
- 大數(shù)據(jù)技術(shù)體系詳解:原理、架構(gòu)與實(shí)踐
- Scratch Cookbook
- Unity 4.x Game AI Programming
- 產(chǎn)品經(jīng)理數(shù)據(jù)修煉30問(wèn)