iOS Programming (6th Edition) cover

iOS Programming (6th Edition)

No rating yet
Chapters
15
Series
Chinese translation of The Big Nerd Ranch Guide
ISBN
9787568044561

Tags

Summary

iOS Programming (6th Edition) is the Chinese translation of Big Nerd Ranch's popular introductory iOS training course, originally published as iOS Programming: The Big Nerd Ranch Guide. Built around iOS 10, Xcode 8.1, and Swift 3, the book follows a learn-by-doing approach that guides readers through a complete project, gradually building the full skill set from interface construction to data storage. It opens with a small app called Quiz that ushers readers into Xcode: creating a project, understanding model-view-controller (MVC), building interfaces with Interface Builder, running on the simulator, and wiring up IBOutlet and IBAction connections. It then covers Swift fundamentals (type inference, optionals, enumerations, loops, and string interpolation) before moving on to core topics such as views and the view hierarchy, Auto Layout constraints, text input and delegation, view controllers, and building interfaces and constraints in code. Later chapters address localization and internationalization, view animation, debugging with LLDB, UITableView with editing and custom cells, UIStackView, UINavigationController navigation, and features such as the camera and photo picker. Each chapter ends with beginner, intermediate, and advanced exercises that extend the concepts into real-world scenarios. The book pursues two main goals: covering as much of the essential knowledge for iOS app development as possible, and teaching readers to solve problems "the right way," including naming and memory management conventions, subclass initializers, common Cocoa design patterns, and trade-offs among data persistence options. The first two chapters are enough for beginners to get up and running quickly, while experienced developers can use the book to fill in gaps.

Editor's review

这是一本“跟着做就能学会”的 iOS 入门书,而不是罗列 API 的参考手册。它脱胎于 Big Nerd Ranch 的实体培训课程:作者先给你一个能跑起来的小应用,再在逐步完善的过程中解释 MVC、委托、约束、动画、数据源这些概念,学完一章就多一个可以运行的作品。 与前几版相比,第6版把代码全面切到 Swift 3,并适配 iOS 10 与 Xcode 8.1,Objective-C 时代的语法包袱被清理掉,读者不必再在两套语言之间切换。书中对 Auto Layout 的讲解尤其细致:从 Interface Builder 里拖约束,到用代码激活锚点约束、处理内容优先级与布局冲突,这些在实际开发中最容易卡住的地方都有专门的章节和练习。 值得一提的是书中反复强调“约定”与“设计模式”:命名规范、内存管理、子类初始化方法怎么写、数据该存到哪里、何时用委托而不是通知——这些知识自己摸索往往要走很多弯路。每章末尾的分级练习也让它适合作为培训或自学教材。需要提醒的是,技术迭代很快,书中的 iOS 10、Swift 3 环境已属旧版本,读者应把它当作理解 iOS 开发框架与思路的基石,同时在真机项目里对照最新文档与 Xcode 调整。

Who it's for

A good fit for

  • 有少量编程基础、想系统入门 iOS 开发的初学者
  • 会其他语言、准备转向 Swift 与 UIKit 的开发者
  • 高校移动开发课程或培训班的教师与学员
  • 希望补齐 MVC、Auto Layout、UITableView 等基础概念的从业者

Not a good fit for

  • 完全没有编程经验、需要先补编程基础的读者
  • 只想学 SwiftUI 或最新 iOS 版本开发的读者
  • 已有多年 iOS 经验、只想查 API 速查手册的资深开发者

Reading tips

  1. 把电脑打开,跟着第1章把 Quiz 项目从头做完,不要只读代码。
  2. 每章末的初、中、高级练习至少各做一题,这是本书真正的价值所在。
  3. 读到第9章调试时,专门花时间熟悉 LLDB 断点与单步调试。
  4. 注意书中环境为 iOS 10、Swift 3,遇到语法差异时对照最新 Swift 与官方文档修订。

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. Chapter 1 Your First Simple iOS App
  2. Chapter 2 The Swift Language
  3. Chapter 3 Views and the View Hierarchy
  4. Chapter 4 Text Input and Delegation
  5. Chapter 5 View Controllers
  6. Chapter 6 Building Views in Code
  7. Chapter 7 Localization
  8. Chapter 8 Controlling Animation
  9. Chapter 9 Debugging
  10. Chapter 10 UITableView and UITableViewController
  11. Chapter 11 Editing UITableView
  12. Chapter 12 Creating UITableViewCell Subclasses
  13. Chapter 13 UIStackView
  14. Chapter 14 UINavigationController
  15. Chapter 15 The Camera

FAQ

这本书讲的是 Objective-C 还是 Swift?
第6版已全面改用 Swift,对应 Swift 3、Xcode 8.1 与 iOS 10;更早的第4版仍以 Objective-C 为主,购买时务必按版次确认。
零基础可以直接读吗?
如果有其他语言的编程经验会比较顺利;完全没有编程基础建议先掌握变量、函数、面向对象等基本概念,再读效果更好。
书里的代码在新版 Xcode 上还能跑吗?
项目结构大体仍可参考,但 Swift 语法和部分 API 已发生变化,需要在最新 Xcode 中手动调整,建议以理解框架思路为主。
第6版和第5版有什么区别?
第5版基于 iOS 9、Xcode 7 与 Swift,第6版升级到 iOS 10、Xcode 8.1 与 Swift 3,并调整了部分章节与示例项目;第5版由王凤全、丁道骏翻译,第6版主要由王凤全翻译。

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.

Top rated in the same category