- 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
推薦閱讀
- Hands-On Data Structures and Algorithms with Rust
- Python金融大數據分析(第2版)
- Python數據分析、挖掘與可視化從入門到精通
- 云計算服務保障體系
- iOS and OS X Network Programming Cookbook
- Starling Game Development Essentials
- 智慧的云計算
- 爬蟲實戰:從數據到產品
- 數據應用工程:方法論與實踐
- AndEngine for Android Game Development Cookbook
- Swift Functional Programming(Second Edition)
- Artificial Intelligence for Big Data
- Access 2010數據庫應用技術教程(第二版)
- 數據可視化五部曲
- Mastering Java for Data Science