iOS编程(第4版)

[美] Christian Keur, [美] Aaron Hillegass, [美] Joe Conway

出版时间

2015-01-01

ISBN

9787560997902

评分

★★★★★
书籍介绍
《iOS编程》荣获Jolt生产力大奖。第4版更新了iOS7和Xcode5的内容。全书涵盖了开发iOS应用的方方面面。从Objective-C基础知识到新增加的语言特性;从AppKit库到常见的Cocoa设计模式;从Xcode技巧到Instruments等。如果读者刚 接触iOS编程,阅读本书前两章可以快速入门。如果读者已经有iOS编程经验,阅读本书可以拾遗补缺。
AI导读
核心看点
  • 荣获Jolt大奖,系统讲解iOS开发全貌
  • 深入剖析Objective-C基础与Cocoa设计模式
  • 涵盖Xcode技巧、内存管理及视图层级原理
适合谁读
  • 具备编程基础,希望系统入门iOS开发的读者
  • 有iOS经验,需查漏补缺、深化原理理解的开发者
  • 对Objective-C语言特性及底层机制感兴趣的程序员
读前提醒
  • 内容基于iOS7和Xcode5,与现行环境差异较大
  • 部分代码在新版Xcode中可能报错,需自行调试
  • 建议结合官方最新文档对照阅读,勿直接照搬
读者共识
  • 被誉为iOS入门佳作,讲解透彻,案例上手容易
  • 翻译质量优秀,术语准确,优于多数翻译技术书
  • 因版本过老,代码兼容性差,不建议零基础盲读

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "在便捷方法中,应该使用 self,而不是直接使用类名,这样子类也能使用同一个方法。"
  • "All Objective-C objects are stored in a part of memory called the heap. When we send an alloc message to a class, a chunk of memory is allocated from the heap. This chunk includes space for the object’s instance variables. Pointer variables convery ownership of the objects that they point to. 1. Whe"
  • "How objects lose owners 1. A variable that points to the object is changed to point to another object. 2. A variable that points to the object is set to nil. 3. A variable that points to the object is itself destroyed. A pointer variable stores the address of an object, that object has an owner and "
  • "Build and run the application again. This time, the objects are destroyed properly. Every retain cycle can be broken down into a parent-child relationship. A parent typically keeps a strong reference to its child, so if a child needs a pointer to its parent, that pointer must be a weak reference to "
  • "A property is declared in the interface of a class where methods are declared. A property declaration has the following form: @property NSString *itemName; When you declare a property, you are implicitly declaring a setter and a getter for the instance variable of the same name. So the above line of"
  • "Delegation is an object-oriented approach to callbacks. A callback is a function that is supplied in advance of an event and is called every time that event occurs. Some objects need to make a callback for more than one event. For instance, the location manager wants to "callback" when it finds a ne"
  • "A view is an instance of UIView or one of its subclasses. A view knows how to draw itself on the application’s window, an instance of UIWindow. A view exists within a hierarchy of views. The root of this hierarchy is the application’s window. A view handles events, like touches. Core Graphics CGCont"
  • "Instances of UIResponder can become the first responder of the window and will receive nevents when the device is shaken or a key is pressed on the keyboard."
作者简介
Christian Keur是Big Nerd Ranch的高级讲师和软件工程师,负责编写Big Nerd Ranch的“iOS新手培训课程”教材。该教材广受好评,是本书的原型。Christian毕业于美国佐治亚理工学院计算机科学系,目前居住在亚特兰大。 Aaron Hillegass是Big Nerd Ranch的创始人之一,曾就职于NeXT公司和Apple公司,他拥有近20年的Objective-C、Cocoa、iOS开发与教学经验。Aaron与他人合著了《Mac OS X编程》和《Objectibe-C编程》。 Joe Conway曾参与编写了“iOS新手培训课程”教材。他最近创办了stable/kernel 公司,开发高质量的移动应用。
下载
收藏