没有合适的资源?快使用搜索试试~ 我知道了~
首页iOS.Programming.The.Big.Nerd.Ranch.Guide.3rd
iOS.Programming.The.Big.Nerd.Ranch.Guide.3rd
5星 · 超过95%的资源 需积分: 32 27 下载量 188 浏览量
更新于2023-03-16
评论
收藏 24.82MB PDF 举报
This book will teach you the essential concepts of iOS programming. At the same time, you’ll type in a lot of code and build a bunch of applications. By the end of the book, you’ll have knowledge and experience. However, all the knowledge shouldn’t (and, in this book, won’t) come first. That’s sort of the traditional way we’ve all come to know and hate. Instead, we take a learn-while-doing approach. Development concepts and actual coding go together.
资源详情
资源评论
资源推荐
iOS Programming: The Big Nerd Ranch Guide
Joe Conway and Aaron Hillegass
Copyright © 2012 Big Nerd Ranch, Inc.
All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the
publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical,
photocopying, recording, or likewise. For information regarding permissions, contact
Big Nerd Ranch, Inc.
154 Krog Street
Suite 100
Atlanta, GA 30307
(404) 478-9005
http://www.bignerdranch.com/
book-comments@bignerdranch.com
The 10-gallon hat with propeller logo is a trademark of Big Nerd Ranch, Inc.
Exclusive worldwide distribution of the English edition of this book by
Pearson Technology Group
800 East 96th Street
Indianapolis, IN 46240 USA
http://www.informit.com
The authors and publisher have taken care in writing and printing this book but make no expressed or implied warranty of any kind and assume no
responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the
information or programs contained herein.
App Store, Apple, Cocoa, Cocoa Touch, Finder, Instruments, iCloud, iPad, iPhone, iPod, iPod touch, iTunes, Keychain, Mac, Mac OS, Multi-
Touch, Objective-C, OS X, Quartz, Retina, Safari, and Xcode are trademarks of Apple, Inc., registered in the U.S. and other countries.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear
in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.
Print ISBN-10 0321821521
Print ISBN-13 978-0321821522
Third edition, first printing, March 2012
Release K.3.1.1
Acknowledgments
While our names appear on the cover, many people helped make this book a reality. We would like to take this chance to thank them.
The other instructors who teach the iOS Bootcamp fed us with a never-ending stream of suggestions and corrections. They are Scott Ritchie,
Brian Hardy, Mikey Ward, Christian Keur, Alex Silverman, Owen Matthews, Brian Turner, Juan Pablo Claude, and Bolot Kerimbaev.
Our tireless editor, Susan Loper, took our distracted mumblings and made them into readable prose.
Our technical reviewers, Bill Monk and Jawwad Ahmad, helped us find and fix flaws.
Ellie Volckhausen designed the cover. (The photo is of the bottom bracket of a bicycle frame.)
Chris Loper at IntelligentEnglish.com designed and produced the print book and the EPUB and Kindle versions.
The amazing team at Pearson Technology Group patiently guided us through the business end of book publishing.
The final and most important thanks goes to our students whose questions inspired us to write this book and whose frustrations inspired us to make it
clear and comprehensible.
Table of Contents
Introduction
Prerequisites
Prerequisites
What’s Changed in the Third Edition?
Our Teaching Philosophy
How To Use This Book
Using an eBook
How This Book Is Organized
Style Choices
Typographical Conventions
Necessary Hardware and Software
1. A Simple iOS Application
Creating an Xcode Project
Building Interfaces
Model-View-Controller
Declarations
Declaring instance variables
Declaring methods
Making Connections
Setting pointers
Setting targets and actions
Summary of connections
Implementing Methods
Build and Run on the Simulator
Deploying an Application
Application Icons
Launch Images
2. Objective-C
Objects
Using Instances
Creating objects
Sending messages
Destroying objects
Beginning RandomPossessions
Creating strings
Format strings
NSArray and NSMutableArray
Subclassing an Objective-C Class
Creating an NSObject subclass
Instance variables
Accessor methods
Instance methods
Initializers
Other initializers and the initializer chain
Using Initializers
Class methods
Testing your subclass
Exceptions and Unrecognized Selectors
Fast Enumeration
Challenges
Bronze Challenge: Bug Finding
Silver Challenge: Another initializer
Gold Challenge: Another Class
Are You More Curious?
For the More Curious: Class Names
3. Managing Memory with ARC
The Heap
The Stack
Pointer Variables and Object Ownership
Memory Management
Using ARC for memory management
How objects lose owners
Strong and Weak References
Properties
Declaring properties
Synthesizing properties
Instance variables and properties
Copying
Dot Syntax
For the More Curious: Autorelease Pool and ARC History
4. Delegation and Core Location
Projects, Targets, and Frameworks
Core Location
Receiving updates from CLLocationManager
Delegation
Protocols
Delegation, controllers, and memory management
Using the Debugger
Using the Debugger
Using breakpoints
Diagnosing crashes and exceptions
Bronze Challenge: Distance Filter
Silver Challenge: Heading
For the More Curious: Build Phases, Compiler Errors, and Linker Errors
Preprocessing
Compiling
Linking
5. MapKit and Text Input
Object Diagrams
MapKit Framework
Interface Properties
Being a MapView Delegate
Using the documentation
Your own MKAnnotation
Tagging locations
Putting the pieces together
Bronze Challenge: Map Type
Silver Challenge: Changing the Map Type
Gold Challenge: Annotation Extras
6. Subclassing UIView and UIScrollView
Views and the View Hierarchy
Creating a Custom View
The drawRect: Method
Core Graphics
UIKit Drawing Additions
Redrawing Views
Motion Events
Using UIScrollView
Panning and paging
Zooming
Hiding the Status Bar
Bronze Challenge: Colors
Silver Challenge: Shapes
Gold Challenge: Another View and Curves
7. View Controllers
UIViewController
剩余715页未读,继续阅读
lqhlqy2012
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论7