没有合适的资源?快使用搜索试试~ 我知道了~
首页iOS7应用开发入门指南
iOS7应用开发入门指南
5星 · 超过95%的资源 需积分: 9 142 下载量 100 浏览量
更新于2024-07-24
1
收藏 14.47MB PDF 举报
"iOS7 App Development Essentials.pdf"
本书是关于iOS7应用开发的精华指南,适合新老iOS开发者学习。书中涵盖了从如何加入苹果iOS开发者计划,安装Xcode 5和iOS 7 SDK,到创建简单的iOS 7应用程序的全过程。
在“开始这里”章节,作者对新iOS开发者和已有的iOS 6开发者给出了不同的建议。对于新手,他们将学习到iOS开发的基础,而对于iOS 6开发者,则会了解如何将他们的知识更新到最新的iOS 7平台。同时,读者可以下载源代码以辅助学习,并被鼓励提供反馈和报告错误。
在“加入苹果iOS开发者计划”章节,首先介绍了注册成为苹果注册开发者的过程,以及如何下载Xcode 5和iOS 7 SDK。接着,详细阐述了iOS开发者计划的详细内容,包括何时应该加入该计划。接着指导读者如何实际操作注册流程。
“安装Xcode 5和iOS 7 SDK”章节,指导读者识别自己的Mac电脑是Intel还是PowerPC架构,然后详细介绍如何安装Xcode 5和iOS 7 SDK。安装完成后,介绍如何启动Xcode,为后续的开发工作做准备。
“创建一个简单的iOS 7应用”章节是实践部分,首先讲解如何启动Xcode 5,然后通过创建iOS应用用户界面,改变组件属性,添加对象到用户界面来深入理解开发过程。这一章还包含了如何处理构建错误、测试不同屏幕尺寸的应用,以及在不同iOS版本中测试用户界面的外观。此外,还强调了监控应用程序性能的重要性。
在“iOS 7架构和SDK框架”章节,介绍了iPhone OS演变为iOS的过程,并概述了iOS 7架构。这部分内容可能包括核心系统服务、媒体技术、开发工具等关键框架,它们是构建iOS应用的基础。
这本书是iOS开发者提升技能的重要资源,无论你是初学者还是经验丰富的开发者,都能从中受益。它不仅提供了理论知识,还提供了实际操作的步骤,帮助读者快速上手并理解iOS 7开发的关键点。
xvi
41.2 Managed Objects ............................................................................................................. 366
41.3 Managed Object Context ................................................................................................. 366
41.4 Managed Object Model .................................................................................................... 367
41.5 Persistent Store Coordinator ............................................................................................ 367
41.6 Persistent Object Store..................................................................................................... 368
41.7 Defining an Entity Description .......................................................................................... 368
41.8 Obtaining the Managed Object Context .......................................................................... 369
41.9 Getting an Entity Description ........................................................................................... 370
41.10 Creating a Managed Object ............................................................................................ 370
41.11 Getting and Setting the Attributes of a Managed Object .............................................. 370
41.12 Fetching Managed Objects ............................................................................................. 371
41.13 Retrieving Managed Objects based on Criteria .............................................................. 371
41.14 Summary ........................................................................................................................ 372
42. An iOS 7 Core Data Tutorial ............................................................................................... 373
42.1 The Core Data Example Application ................................................................................. 373
42.2 Creating a Core Data based Application ........................................................................... 373
42.3 Creating the Entity Description ........................................................................................ 373
42.4 Adding a Storyboard to the Project .................................................................................. 375
42.5 Adding a View Controller .................................................................................................. 376
42.6 Designing the User Interface ............................................................................................ 376
42.7 Saving Data to the Persistent Store using Core Data ....................................................... 378
42.8 Retrieving Data from the Persistent Store using Core Data ............................................. 379
42.9 Building and Running the Example Application................................................................ 380
42.10 Summary ........................................................................................................................ 381
43. An Overview of iOS 7 Multitouch, Taps and Gestures ....................................................... 383
43.1 The Responder Chain ....................................................................................................... 383
43.2 Forwarding an Event to the Next Responder ................................................................... 384
43.3 Gestures ........................................................................................................................... 384
43.4 Taps .................................................................................................................................. 384
43.5 Touches ............................................................................................................................ 385
43.6 Touch Notification Methods ............................................................................................. 385
43.6.1 touchesBegan method .............................................................................................. 385
43.6.2 touchesMoved method ............................................................................................. 385
43.6.3 touchesEnded method .............................................................................................. 385
43.6.4 touchesCancelled method ......................................................................................... 386
43.7 Summary .......................................................................................................................... 386
xvii
44. An Example iOS 7 Touch, Multitouch and Tap Application ................................................ 387
44.1 The Example iOS 7 Tap and Touch Application ................................................................ 387
44.2 Creating the Example iOS Touch Project .......................................................................... 387
44.3 Designing the User Interface ............................................................................................ 387
44.4 Enabling Multitouch on the View ..................................................................................... 389
44.5 Implementing the touchesBegan Method ....................................................................... 389
44.6 Implementing the touchesMoved Method ...................................................................... 390
44.7 Implementing the touchesEnded Method ....................................................................... 390
44.8 Getting the Coordinates of a Touch ................................................................................. 391
44.9 Building and Running the Touch Example Application ..................................................... 391
45. Detecting iOS 7 Touch Screen Gesture Motions ................................................................ 393
45.1 The Example iOS 7 Gesture Application ........................................................................... 393
45.2 Creating the Example Project ........................................................................................... 393
45.3 Designing the Application User Interface ......................................................................... 393
45.4 Implementing the touchesBegan Method ....................................................................... 395
45.5 Implementing the touchesMoved Method ...................................................................... 395
45.6 Implementing the touchesEnded Method ....................................................................... 396
45.7 Building and Running the Gesture Example ..................................................................... 396
45.8 Summary .......................................................................................................................... 396
46. Identifying Gestures using iOS 7 Gesture Recognizers ....................................................... 397
46.1 The UIGestureRecognizer Class ........................................................................................ 397
46.2 Recognizer Action Messages ............................................................................................ 398
46.3 Discrete and Continuous Gestures ................................................................................... 398
46.4 Obtaining Data from a Gesture ........................................................................................ 398
46.5 Recognizing Tap Gestures ................................................................................................ 399
46.6 Recognizing Pinch Gestures .............................................................................................. 399
46.7 Detecting Rotation Gestures ............................................................................................ 399
46.8 Recognizing Pan and Dragging Gestures .......................................................................... 400
46.9 Recognizing Swipe Gestures ............................................................................................. 400
46.10 Recognizing Long Touch (Touch and Hold) Gestures ..................................................... 401
46.11 Summary ........................................................................................................................ 401
47. An iOS 7 Gesture Recognition Tutorial .............................................................................. 403
47.1 Creating the Gesture Recognition Project ........................................................................ 403
47.2 Designing the User Interface ............................................................................................ 403
47.3 Implementing the Action Methods .................................................................................. 406
xviii
47.4 Testing the Gesture Recognition Application ................................................................... 407
48. An Overview of iOS 7 Collection View and Flow Layout .................................................... 409
48.1 An Overview of Collection Views...................................................................................... 409
48.2 The UICollectionView Class .............................................................................................. 412
48.3 The UICollectionViewCell Class ........................................................................................ 412
48.4 The UICollectionReusableView Class ................................................................................ 413
48.5 The UICollectionViewFlowLayout Class ............................................................................ 413
48.6 The UICollectionViewLayoutAttributes Class ................................................................... 414
48.7 The UICollectionViewDataSource Protocol ...................................................................... 414
48.8 The UICollectionViewDelegate Protocol .......................................................................... 415
48.9 The UICollectionViewDelegateFlowLayout Protocol ........................................................ 416
48.10 Cell and View Reuse ....................................................................................................... 417
48.11 Summary ........................................................................................................................ 419
49. An iOS 7 Storyboard-based Collection View Tutorial ......................................................... 421
49.1 Creating the Collection View Example Project ................................................................. 421
49.2 Removing the Template View Controller ......................................................................... 421
49.3 Adding a Collection View Controller to the Storyboard ................................................... 422
49.4 Adding the Collection View Cell Class to the Project ........................................................ 424
49.5 Designing the Cell Prototype ............................................................................................ 424
49.6 Implementing the Data Model ......................................................................................... 426
49.7 Implementing the Data Source ........................................................................................ 428
49.8 Testing the Application ..................................................................................................... 430
49.9 Setting Sizes for Cell Items ............................................................................................... 431
49.10 Changing Scroll Direction ............................................................................................... 433
49.11 Implementing a Supplementary View ............................................................................ 435
49.12 Implementing the Supplementary View Protocol Methods ........................................... 438
49.13 Deleting Collection View Items ...................................................................................... 439
49.14 Summary ........................................................................................................................ 440
50. Subclassing and Extending the iOS 7 Collection View Flow Layout .................................... 441
50.1 About the Example Layout Class ...................................................................................... 441
50.2 Subclassing the UICollectionViewFlowLayout Class ......................................................... 442
50.3 Extending the New Layout Class ...................................................................................... 442
50.4 Implementing the layoutAttributesForItemAtIndexPath: Method .................................. 443
50.5 Implementing the layoutAttributesForElementsInRect: Method .................................... 444
50.6 Implementing the modifyLayoutAttributes: Method ....................................................... 445
50.7 Adding the New Layout and Pinch Gesture Recognizer ................................................... 446
xix
50.8 Implementing the Pinch Recognizer ................................................................................. 447
50.9 Avoiding Image Clipping ................................................................................................... 450
50.10 Testing the Application ................................................................................................... 450
50.11 Summary ........................................................................................................................ 451
51. Drawing iOS 7 2D Graphics with Core Graphics ................................................................. 453
51.1 Introducing Core Graphics and Quartz 2D........................................................................ 453
51.2 The drawRect Method ...................................................................................................... 453
51.3 Points, Coordinates and Pixels ......................................................................................... 454
51.4 The Graphics Context ....................................................................................................... 454
51.5 Working with Colors in Quartz 2D .................................................................................... 455
51.6 Summary .......................................................................................................................... 456
52. An iOS 7 Graphics Tutorial using Core Graphics and Core Image ....................................... 457
52.1 The iOS Drawing Example Application ............................................................................. 457
52.2 Creating the New Project ................................................................................................. 457
52.3 Creating the UIView Subclass ........................................................................................... 457
52.4 Locating the drawRect Method in the UIView Subclass ................................................... 458
52.5 Drawing a Line .................................................................................................................. 459
52.6 Drawing Paths .................................................................................................................. 462
52.7 Drawing a Rectangle ......................................................................................................... 463
52.8 Drawing an Ellipse or Circle .............................................................................................. 464
52.9 Filling a Path with a Color ................................................................................................. 465
52.10 Drawing an Arc ............................................................................................................... 467
52.11 Drawing a Cubic Bézier Curve ......................................................................................... 468
52.12 Drawing a Quadratic Bézier Curve .................................................................................. 469
52.13 Dashed Line Drawing ...................................................................................................... 470
52.14 Drawing Shadows ........................................................................................................... 472
52.15 Drawing Gradients .......................................................................................................... 473
52.16 Drawing an Image into a Graphics Context .................................................................... 478
52.17 Image Filtering with the Core Image Framework ........................................................... 480
52.18 Summary ........................................................................................................................ 482
53. Basic iOS 7 Animation using Core Animation..................................................................... 483
53.1 UIView Core Animation Blocks ......................................................................................... 483
53.2 Understanding Animation Curves .................................................................................... 484
53.3 Receiving Notification of Animation Completion ............................................................. 485
53.4 Performing Affine Transformations.................................................................................. 485
53.5 Combining Transformations ............................................................................................. 486
xx
53.6 Creating the Animation Example Application .................................................................. 486
53.7 Implementing the Interface File ....................................................................................... 486
53.8 Drawing in the UIView ...................................................................................................... 487
53.9 Detecting Screen Touches and Performing the Animation .............................................. 487
53.10 Building and Running the Animation Application .......................................................... 489
53.11 Summary ........................................................................................................................ 490
54. iOS 7 UIKit Dynamics – An Overview ................................................................................. 491
54.1 Understanding UIKit Dynamics ......................................................................................... 491
54.2 The UIKit Dynamics Architecture...................................................................................... 492
54.2.1 Dynamic Items .......................................................................................................... 492
54.2.2 Dynamic Behaviors .................................................................................................... 492
54.2.3 The Reference View ................................................................................................... 493
54.2.4 The Dynamic Animator ............................................................................................. 493
54.3 Implementing UIKit Dynamics in an iOS 7 Application ..................................................... 494
54.4 Dynamic Animator Initialization ....................................................................................... 494
54.5 Configuring Gravity Behavior ........................................................................................... 495
54.6 Configuring Collision Behavior ......................................................................................... 496
54.7 Configuring Attachment Behavior .................................................................................... 498
54.8 Configuring Snap Behavior ............................................................................................... 500
54.9 Configuring Push Behavior ............................................................................................... 500
54.10 The UIDynamicItemBehavior Class ................................................................................. 502
54.11 Combining Behaviors to Create a Custom Behavior....................................................... 503
54.12 Summary ........................................................................................................................ 504
55. An iOS 7 UIKit Dynamics Tutorial ...................................................................................... 505
55.1 Creating the UIKit Dynamics Example Project .................................................................. 505
55.2 Adding the Dynamic Items ............................................................................................... 505
55.3 Creating the Dynamic Animator Instance ........................................................................ 507
55.4 Adding Gravity to the Views ............................................................................................. 508
55.5 Implementing Collision Behavior ..................................................................................... 509
55.6 Attaching a View to an Anchor Point................................................................................ 511
55.7 Implementing a Spring Attachment Between two Views ................................................ 514
55.8 Summary .......................................................................................................................... 515
56. An Introduction to iOS 7 Sprite Kit Programming .............................................................. 517
56.1 What is Sprite Kit? ............................................................................................................ 517
56.2 The Key Components of a Sprite Kit Game ...................................................................... 518
56.2.1 Sprite Kit View ........................................................................................................... 518
剩余878页未读,继续阅读
108 浏览量
2015-03-11 上传
2017-09-26 上传
339 浏览量
2014-02-01 上传
2018-12-14 上传
2017-09-26 上传
2019-11-15 上传
PMain
- 粉丝: 8
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- MATLAB新功能:Multi-frame ViewRGB制作彩色图阴影
- XKCD Substitutions 3-crx插件:创新的网页文字替换工具
- Python实现8位等离子效果开源项目plasma.py解读
- 维护商店移动应用:基于PhoneGap的移动API应用
- Laravel-Admin的Redis Manager扩展使用教程
- Jekyll代理主题使用指南及文件结构解析
- cPanel中PHP多版本插件的安装与配置指南
- 深入探讨React和Typescript在Alias kopio游戏中的应用
- node.js OSC服务器实现:Gibber消息转换技术解析
- 体验最新升级版的mdbootstrap pro 6.1.0组件库
- 超市盘点过机系统实现与delphi应用
- Boogle: 探索 Python 编程的 Boggle 仿制品
- C++实现的Physics2D简易2D物理模拟
- 傅里叶级数在分数阶微分积分计算中的应用与实现
- Windows Phone与PhoneGap应用隔离存储文件访问方法
- iso8601-interval-recurrence:掌握ISO8601日期范围与重复间隔检查
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功