- iOS Programming Cookbook
- Hossam Ghareeb
- 67字
- 2021-07-09 18:29:42
Using extensions to extend classes functionality
For its name, extensions are used to extend an existing functionality. In Swift, you can extend classes, structures, protocols, and enumerations. Extensions are similar to categories in Objective-C except that extensions don't have names. It's very useful to add functionality to any type that you don't have access to its source code, such as native classes String, NSArray, and so on.
推薦閱讀
- Linux運維之道(第3版)
- Designing Purpose:Built Drones for Ardupilot Pixhawk 2.1
- Modern Web Testing with TestCafe
- Linux系統架構與運維實戰
- Ubuntu Linux操作系統
- Windows Server 2019 Administration Fundamentals
- Microsoft Operations Management Suite Cookbook
- 細說Linux基礎知識
- Cassandra 3.x High Availability(Second Edition)
- Building Telephony Systems With Asterisk
- 大規模Linux集群架構最佳實踐:如何管理上千臺服務器
- Website Development with PyroCMS
- PrimeFaces Beginner's Guide
- Linux網絡操作系統項目教程(RHEL 6.4/CentOS 6.4)(第2版)
- OpenStack Trove Essentials