Learning iOS Programming, 2nd Edition.pdf
Chapter 1, Why Go Native? This chapter discusses the need for native applications and compares building native applications to building web applications. Chapter 2, Becoming a Developer This chapter walks you through the process of registering as an iOS developer and setting up your work environment, from installing Xcode and the iOS SDK to generating the developer certificates you’ll need to build your applications and deploy them onto your own iPhone, iPod touch, or iPad. Chapter 3, Your First iOS App This chapter allows you to get hands-on as quickly as possible and walks you through building your first Hello World application, including how to deploy and run the application your iPhone, iPod touch, or iPad. Chapter 4, Coding in Objective-C This chapter provides a crash course in the basics of the Objective-C language, and if you’re familiar with another C-derived language (and perhaps with objectoriented programming), it should be enough to get you up and running with Objective-C and the Cocoa Touch frameworks. Chapter 5, Table View–Based Applications The UITableView and associated classes are perhaps the most commonly used classes when building user interfaces for iOS applications. Due to the nature of the applications, these classes can be used to solve a large cross section of problems, and as a result, they appear almost everywhere. In this chapter, we dive fairly deeply into the table view classes. Chapter 6, Other View Controllers After discussing the table view controller in detail, we discuss some of the other view controllers and classes that will become useful when building your applications: simple two-screen views, single-screen tabbed views, modal view controllers, and a view controller for selecting video and images. Chapter 7, Connecting to the Network This chapter discusses connecting to the Internet, browsing the Web, sending email, and retrieving information. Chapter 8, Handling Data This chapter discusses how to handle data input, both from the application user and programmatically, and how to parse XML and JSON documents. The chapter also covers storing data in flat files and storing data with the SQLite database engine. Chapter 9, Using Sensors This chapter discusses how to determine what hardware is available and illustrates how to deal with the major sensors on iOS devices: the accelerometer, magnetometer, camera, and GPS. Chapter 10, Geolocation and Mapping This chapter walks you through the process of building applications that make use of the Core Location and MapKit frameworks. Chapter 11, Introduction to iCloud This chapter provides a brief introduction to integrating Apple’s iCloud service into your own applications. iCloud is a service that helps you synchronize your data across devices, making documents and data available to all of your subscribed devices. Chapter 12, Integrating Your Application This chapter shows you some of the tricks to integrate your application with iOS’s software ecosystem, how to present user preferences with Settings Bundles, and how to use custom URL schemes to launch your application. It also discusses how to make use of the Media Player and Address Book. Chapter 13, Distributing Your Application This chapter talks about how to add some final polish to your application and walks you through the process of building your application for distribution, either via ad hoc distribution or for the App Store. Chapter 14, Going Further This chapter provides a collection of pointers to more advanced material on the topics we covered in the book, as well as material covering some of those topics that we didn’t manage to talk about in the book. iOS编程学习是苹果设备开发人员的一项必备技能,随着移动互联网的发展,掌握iOS开发技术变得越来越重要。本系列知识点将详细介绍iOS开发的各个方面,内容涵盖了从基础的开发环境搭建到高级应用功能的实现。我们要明白为什么需要原生应用程序,以及与网页应用程序的比较。原生应用是直接为特定平台(如iOS、Android等)开发的应用程序,它们能够充分利用设备的硬件和操作系统功能。而网页应用则运行在浏览器中,通常需要依赖网络连接。原生应用通常提供更好的性能和用户体验,但也需要针对不同的平台开发和维护。在成为一名开发者之前,需要完成注册并设置开发环境。这包括安装Xcode和iOS SDK(软件开发工具包),以及申请开发者证书。这些步骤是构建iOS应用程序的基础,有了它们,开发人员就可以在自己的iPhone、iPod touch或iPad上部署和运行应用程序。接下来,你将通过构建你的第一个“Hello World”应用来快速上手。这个过程不仅涉及到代码编写,还涉及到应用程序的部署和调试。通过实际操作,你可以迅速了解iOS开发的基本流程。 Objective-C是iOS开发的传统编程语言,如果你熟悉其他C衍生语言,那么学习Objective-C将会相对容易。本部分将提供Objective-C基础的速成课程,让你掌握语言基础以及如何使用Cocoa Touch框架进行开发。用户界面构建是iOS开发的重要部分,其中UITableView(表格视图)是构建用户界面的常用类之一。它几乎在所有iOS应用中都有应用,能够解决用户界面构建中的许多问题。本部分将深入探讨表格视图类的使用和功能。在构建应用时,还会使用到其他视图控制器和类。例如,简单两屏视图、单屏标签视图、模态视图控制器以及用于选择视频和图片的视图控制器。这些工具将帮助开发者构建复杂的用户界面和交互。网络连接是现代应用必不可少的一部分。本部分将介绍如何连接到互联网,浏览网页,发送电子邮件以及获取信息。这些技能对于开发功能丰富的iOS应用至关重要。数据处理是任何应用的核心,特别是在移动设备上,用户数据输入和数据存储尤为重要。本部分将指导如何处理用户输入的数据和程序生成的数据,包括解析XML和JSON文档,以及使用SQLite数据库引擎存储数据。 iOS设备上配备了多种传感器,如加速度计、磁力计、摄像头和GPS等。这些硬件的利用可以极大地增强应用的交互性和功能性。本部分将探讨如何检测硬件可用性,以及如何使用这些传感器。地理位置和地图是iOS应用开发中的重要部分。通过Core Location和MapKit框架,可以轻松地构建出利用位置信息的应用程序。 iCloud是苹果提供的云服务,用于在设备间同步数据,使得文档和数据可在所有订阅设备上可用。本部分将简要介绍如何将iCloud集成到应用中。应用与iOS软件生态系统的整合至关重要。本部分将展示一些技巧,包括如何使用设置包呈现用户偏好,如何使用自定义URL方案来启动应用,以及如何使用媒体播放器和地址簿。应用发布是开发过程的最后一步。本部分将指导如何为发布做准备,包括为ad hoc分发或App Store构建应用程序。本系列还将提供一系列的高级材料和未在书中讨论的主题的指引,帮助开发者进一步扩展知识和技能。总结来说,iOS编程学习是一个系统的过程,涵盖了开发环境的搭建、编程语言的掌握、用户界面设计、网络通信、数据处理、硬件传感器的应用、地理位置服务、iCloud服务的整合、应用的生态整合以及应用发布等多个方面。通过本系列知识点的学习,开发者将能够掌握iOS应用开发的全貌,并能够开发出功能丰富、性能优异的iOS应用。
33.19MB
文件大小:
评论区