iOS Programming (4th Edition) cover

iOS Programming (4th Edition)

Rating 4.4
Word count
940K words
Chapters
9
Series
The Big Nerd Ranch Guide (Chinese translation)
ISBN
9787560997902

Tags

Summary

This book is a hands-on tutorial distilled from Big Nerd Ranch's acclaimed 'iOS beginner bootcamp' course and is the 4th edition of the iOS Programming series. Fully rewritten for the iOS 7 and Xcode 5 development environment, it begins with Objective-C fundamentals and new language features, then moves progressively into common design patterns in the Cocoa frameworks, use of the Xcode and Instruments debugging tools, the view hierarchy, view controllers, Auto Layout, animation, data persistence, multithreading, network access, camera and maps, and every other stage of iOS app development. Unlike manuals that merely list APIs, the book is built around example apps you can complete yourself: requirements and design come first, then step-by-step interface building, coding, and debugging, and finally exercises—bronze, silver, and gold challenges—to help readers truly understand why the code is written as it is. The authors share extensive practical experience on naming conventions, memory-management conventions, subclass initialization, and choosing data-persistence methods in iOS development, making the book suitable both for complete beginners who want to start quickly with Chapters 1 and 2 and for experienced developers filling gaps and organizing their knowledge. This edition is a 16-format paperback of about 560 pages and 940,000 Chinese characters.

Editor's review

iOS 入门书不少,但真正把「手把手做出来」和「讲清背后原理」兼顾的并不多。本书源自 Big Nerd Ranch 的线下强化培训课程,作者 Aaron Hillegass 曾在 NeXT 与 Apple 任职,书中保留了大量一线教学与开发中积累的约定和踩坑经验,因此读起来不像 API 字典,更像一位老练的带教在旁边逐行讲解。全书的结构设计相当友好:开头两章以最简单的 Quiz 应用帮助读者快速获得「跑起来」的成就感,之后再循序渐进地进入内存管理、视图层级、视图控制器等硬骨头;每个章节末尾都配有深浅不同的练习,读者若肯动手,收获远不止会照抄代码。第 4 版针对 iOS 7 与 Xcode 5 重写,是 Objective-C 时代最具代表性的中文译本之一,也是理解老项目与底层机制的可靠参考。需要提醒的是,iOS 生态迭代极快,书中的语言与工具版本已比较久远,它更适合作为「打地基、建心智模型」的经典读物,而不是查询最新 API 的手册。

Who it's for

A good fit for

  • 零基础或刚入门、希望用一个完整项目串联 iOS 开发知识的自学者
  • 具备其他语言基础、准备转入 iOS 开发、需要系统了解 Objective-C 与 Cocoa 的工程师
  • 计算机相关专业学生,可作为移动开发课程配套的实践读物
  • 维护老 Objective-C 项目、需要补足 UIKit 与内存管理基本功的开发者

Not a good fit for

  • 完全零编程经验、尚未接触过任何命令式语言与面向对象概念的读者
  • 只想了解 SwiftUI、Swift Concurrency 等最新技术的读者,书中内容已明显过时
  • 希望当作 API 速查手册、需要随用随查最新接口文档的开发者

Reading tips

  1. 务必边读边敲代码:书中示例高度依赖动手,只看不练几乎无法吸收其中的设计取舍。
  2. 按顺序读完前几章再挑重点章节;视图层次、视图控制器、内存管理这三块建议反复回看。
  3. 遇到版本差异(Xcode、iOS SDK)时,以官方文档和最新教程补足,把书当作原理与思路的参照。
  4. 认真完成每章末尾的初级、中级、高级练习,这是本书区别于普通教程的价值所在。

About the publisher

Huazhong University of Science and Technology Press has continued to release works in politics, military affairs, history, and biography within the humanities and social sciences, with 42 relevant titles in its catalog. Representative books include Tocqueville's The Old Regime and the Revolution, Mill's On Liberty, Clausewitz's On War, Cai Dongfan's Popular Romance of Yuan History, Ludwig's Napoleon, and Hu Shi's Autobiography, as well as social science works such as Yu Lifen's The Theory of Moral Sentiments. Its author resources cover renowned Chinese and foreign figures such as Tocqueville, Mill, Clausewitz, Cai Dongfan, Ludwig, and Hu Shi. Based on publicly available information, the press draws on its comprehensive university background and has built up a certain presence in political science, foreign literature, military theory, historical reading, and biography, balancing classic translations with popular historical narratives.

Contents

  1. Preface: Who This Book Is For / What's New in the 4th Edition / Teaching Philosophy / How to Use This Book
  2. Chapter 1: A Simple iOS App
  3. Chapter 2: Objective-C
  4. Chapter 3: Managing Memory with ARC
  5. Chapter 4: Views and the View Hierarchy
  6. Chapter 5: Views: Redrawing and UIScrollView
  7. Chapter 6: View Controllers
  8. Chapter 7: Navigation Controllers with UITableView and UITableViewCell
  9. Chapter 8: Controllers with UITableView

FAQ

这本书用的是 Objective-C 还是 Swift?
第 4 版以 Objective-C 为主,对应 iOS 7 与 Xcode 5;从第 5 版起才改为以 Swift 为主要语言。若想学 Swift,可考虑第 5 版或第 6 版。
第 4 版和第 5、6 版有什么区别?
第 4 版由 Christian Keur、Aaron Hillegass、Joe Conway 合著,译者丁道骏,2015 年出版;第 5 版、第 6 版更新到 Swift 3 及更新的 Xcode 环境,译者为王凤全等。选购时请认准 ISBN。
现在还有必要读这本 2015 年的书吗?
作为 Objective-C 时代经典教材,它在 UIKit、内存管理、MVC 与调试方法上的讲解依然有参考价值;但 API 与工具界面已过时,需要配合最新官方文档学习。
没有 Mac 能跟着做书里的例子吗?
书中要求 macOS 与 Xcode 环境,没有苹果电脑无法完整实践 iOS 开发流程;这与《Hacking with Swift》等其他 iOS 入门读物的情况一致。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category