在好例子网,分享、交流、成长!
您当前所在位置:首页Swift 开发实例Swift语言基础 → 《iOS Apprentice 7th》pdf

《iOS Apprentice 7th》pdf

Swift语言基础

下载此实例
  • 开发语言:Swift
  • 实例大小:85.79M
  • 下载次数:24
  • 浏览次数:204
  • 发布时间:2019-10-08
  • 实例类别:Swift语言基础
  • 发 布 人:caneny
  • 文件格式:.pdf
  • 所需积分:2
 相关标签: iOS app

实例介绍

【实例简介】

In this iOS 12 programming book for beginners, you’ll learn how to create 4 complete iOS and Swift apps by following easy step-by-step tutorials.

For Complete Beginners!

If you’re completely new to Swift 4.2 and iOS 12 development (or need a brush-up), this is the series for you.

The iOS Apprentice is a series of epic-length tutorials for beginners where you’ll learn how to build 4 complete apps from scratch.

Each new app will be a little more advanced than the one before, and together they cover everything you need to know to make your own apps. By the end of the series you’ll be experienced enough to turn your ideas into real apps that you can sell on the App Store.

These tutorials have easy to follow step-by-step instructions, and consist of more than 900 pages and 500 illustrations! You also get full source code, image files, and other resources you can re-use for your own projects.

If you’re new to iOS and Swift 4, or to programming in general, learning how to write an app can seem incredibly overwhelming.

That’s why you need a guide that:

  • Shows you how to write an app step-by-step
  • With tons of illustrations and screenshots to make everything clear
  • In a fun and easygoing manner!

We’ll start at the very beginning. The first tutorial assumes absolutely zero programming knowledge but still shows you how to build an entire game from scratch.

The iOS Apprentice series doesn’t cover every single feature of iOS – it just focuses on the absolutely essential ones that you need to know.

Instead of just covering a list of features, the iOS Apprentice series does something much more important: it explains how all the different building blocks fit together and what is involved in building real apps.

You’re not going to create quick example programs that demonstrate how to accomplish a single feature. Instead, you’ll develop complete, fully-formed apps that are good enough to submit to the App Store!


【实例截图】


from clipboard

【核心代码】

Table of Contents: Overview
Book Source Code & Forums............................................. 17
Book Updates .......................................................................... 18
About the Cover ..................................................................... 19
Section 1: Getting Started .................................................. 20
Chapter 1: Introduction .............................................. 21
Chapter 2: The One-Button App ............................. 32
Chapter 3: Slider & Labels.......................................... 58
Chapter 4: Outlets......................................................... 81
Chapter 5: Rounds & Score..................................... 100
Chapter 6: Polish......................................................... 116
Chapter 7: The New Look........................................ 130
Chapter 8: The Final App ......................................... 163
Section 2: Checklists .......................................................... 193
Chapter 9: Table Views ............................................. 194
Chapter 10: The Data Model.................................. 229
Chapter 11: Navigation Controllers.................... 255
Chapter 12: Add Item Screen................................. 279
Chapter 13: Delegates & Protocols..................... 301
Chapter 14: Edit Items.............................................. 316
iOS Apprentice
raywenderlich.com 5
Chapter 15: 
Chapter 34: Networking .......................................... 838
Chapter 35: Asynchronous Networking............ 870
Chapter 36: URLSession .......................................... 888
Chapter 37: The Detail Pop-Up............................. 919
Chapter 38: Polish the Pop-up............................... 941
Chapter 39: Landscape............................................. 962
Chapter 40: Refactoring........................................... 999
Chapter 41: Internationalization....................... 1025
Chapter 42: The iPad .............................................. 1049
Chapter 43: Distributing the App...................... 1082
Conclusion........................................................................... 1107
More Books You Might Enjoy ...................................... 1108
iOS Apprentice
raywenderlich.com 7
Table of Contents: Extended
Book Source Code & Forums............................................. 17
Book Updates .......................................................................... 18
About the Cover ..................................................................... 19
Section 1: Getting Started .................................................. 20
Chapter 1: Introduction....................................................... 21
About this book .................................................................................................................. 22
Who this book is for.......................................................................................................... 24
iOS 12 and later only ........................................................................................................ 25
What you need.................................................................................................................... 25
Xcode...................................................................................................................................... 27
What’s ahead: an overview............................................................................................ 28
The language of the computer...................................................................................... 29
Chapter 2: The One-Button App...................................... 32
The Bull’s Eye game........................................................................................................... 32
The one-button app .......................................................................................................... 35
The anatomy of an app..................................................................................................... 55
Chapter 3: Slider & Labels .................................................. 58
Portrait vs. landscape....................................................................................................... 59
Understanding objects, data and methods.............................................................. 64
Adding the other controls .............................................................................................. 67
Chapter 4: Outlets ................................................................. 81
Improving the slider.......................................................................................................... 81
Generating the random number .................................................................................. 87
Adding rounds to the game............................................................................................ 90
Displaying the target value............................................................................................ 95
Chapter 5: Rounds & Score.............................................. 100
iOS Apprentice
raywenderlich.com 8
Getting the difference................................................................................................... 101
Simplifying the algorithm............................................................................................. 106
What’s the score?............................................................................................................ 109
Showing the total score................................................................................................ 110
Displaying the score....................................................................................................... 111
One more round... ........................................................................................................... 113
Chapter 6: Polish ................................................................. 116
Tweaks................................................................................................................................. 116
The alert.............................................................................................................................. 123
Start over............................................................................................................................ 126
Chapter 7: The New Look................................................. 130
Landscape orientation revisited ............................................................................... 130
Spicing up the graphics ................................................................................................. 132
The About screen............................................................................................................ 148
Chapter 8: The Final App.................................................. 163
Supporting different screen sizes............................................................................. 164
Crossfade ........................................................................................................................... 178
The icon............................................................................................................................... 179
Display name..................................................................................................................... 181
Running on device........................................................................................................... 183
The end… or the beginning?........................................................................................ 191
Section 2: Checklists .......................................................... 193
Chapter 9: Table Views...................................................... 194
Table views and navigation controllers .................................................................. 195
The Checklists app design ........................................................................................... 197
Adding a table view ........................................................................................................ 198
The table view delegates.............................................................................................. 210
Chapter 10: The Data Model .......................................... 229
Model-View-Controller................................................................................................ 229
The data model................................................................................................................. 231
iOS Apprentice
raywenderlich.com 9
Cleaning up the code ..................................................................................................... 252
Chapter 11: Navigation Controllers ............................ 255
Navigation controller .................................................................................................... 256
Deleting rows ................................................................................................................... 266
The Add Item screen...................................................................................................... 268
Chapter 12: Add Item Screen ......................................... 279
Static table cells ............................................................................................................... 280
Reading from the text field.......................................................................................... 286
Polishing it up ................................................................................................................... 289
Chapter 13: Delegates & Protocols ............................. 301
Add new ChecklistItems .............................................................................................. 301
Chapter 14: Edit Items ...................................................... 316
Editing items ..................................................................................................................... 316
Refactoring the code ..................................................................................................... 331
One more thing................................................................................................................ 334
Chapter 15: Saving & Loading ........................................ 339
The need for data persistence ................................................................................... 339
The documents folder ................................................................................................... 340
Saving checklist items ................................................................................................... 344
Loading the file................................................................................................................. 351
Where to go from here?................................................................................................ 355
Chapter 16: Lists.................................................................. 356
The All Lists view controller ....................................................................................... 357
The All Lists UI.................................................................................................................. 365
Viewing the checklists................................................................................................... 371
Managing checklists....................................................................................................... 375
Are you still with me?..................................................................................................... 384
Chapter 17: Improved Data Model .............................. 385
The new data model....................................................................................................... 386
iOS Apprentice
raywenderlich.com 10
Faking it ‘til you make it................................................................................................ 389
Saving differently............................................................................................................ 394
Improving the data model............................................................................................ 401
Chapter 18: User Defaults............................................... 407
Remembering the last open list................................................................................. 407
Defensive programming............................................................................................... 414
The first-run experience............................................................................................... 419
Chapter 19: UI Improvements ....................................... 425
Showing counts................................................................................................................ 425
Sorting the lists ................................................................................................................ 434
Adding icons...................................................................................................................... 436
Making the app look good............................................................................................ 450
Chapter 20: Local Notifications..................................... 455
Trying it out........................................................................................................................ 456
Setting a due date ........................................................................................................... 460
Due date UI........................................................................................................................ 465
Scheduling local notifications..................................................................................... 478
That’s a wrap! ................................................................................................................... 484
Section 3: My Locations .................................................... 486
Chapter 21: Swift Review................................................. 487
Variables, constants and types .................................................................................. 488
Methods and functions................................................................................................. 495
Making decisions............................................................................................................. 500
Loops .................................................................................................................................... 505
Objects ................................................................................................................................ 507
Protocols ............................................................................................................................ 510
Chapter 22: Get Location Data...................................... 512
Get GPS coordinates ..................................................................................................... 514
Core Location ................................................................................................................... 521
Displaying coordinates ................................................................................................. 530
iOS Apprentice
raywenderlich.com 11
Chapter 23: Use Location Data...................................... 534
Handling GPS errors ...................................................................................................... 534
Improving GPS results .................................................................................................. 540
Reverse geocoding ......................................................................................................... 546
Testing on device............................................................................................................. 554
Chapter 24: Objects vs. Classes .................................... 563
Classes................................................................................................................................. 563
Inheritance......................................................................................................................... 565
Overriding methods....................................................................................................... 569
Casts..................................................................................................................................... 573
Chapter 25: The Tag Location Screen.......................... 577
The screen.......................................................................................................................... 577
The new view controller............................................................................................... 579
Making the cells............................................................................................................... 582
Displaying location info ................................................................................................ 590
The category picker........................................................................................................ 597
Chapter 26: Adding Polish............................................... 606
Improving the user experience.................................................................................. 606
The HUD............................................................................................................................. 611
Handling the navigation ............................................................................................... 622
Chapter 27: Saving Locations ......................................... 627
Core Data overview....................................................................................................... 628
Adding Core Data ........................................................................................................... 628
The data store................................................................................................................... 637
Passing the context ........................................................................................................ 638
Browsing the data........................................................................................................... 644
Saving the locations ....................................................................................................... 649
Handling Core Data errors.......................................................................................... 652
Chapter 28: The Locations Tab....................................... 660
The Locations tab............................................................................................................ 661
iOS Apprentice
raywenderlich.com 12
Creating a custom table view cell subclass........................................................... 668
Editing locations .............................................................................................................. 670
Using NSFetchedResultsController ........................................................................ 676
Deleting locations........................................................................................................... 684
Table view sections......................................................................................................... 685
Chapter 29: Maps................................................................ 688
Adding a map view.......................................................................................................... 689
Making your own pins ................................................................................................... 701
Chapter 30: Image Picker................................................. 709
Adding an image picker................................................................................................. 710
Showing the image.......................................................................................................... 718
UI improvements............................................................................................................. 724
Saving the image.............................................................................................................. 729
Editing the image............................................................................................................. 735
Thumbnails ........................................................................................................................ 737
Chapter 31: Polishing the App ....................................... 744
Converting placemarks to strings ............................................................................ 745
Back to black..................................................................................................................... 749
The map screen................................................................................................................ 756
Fixing the table views.................................................................................................... 757
Polishing the main screen............................................................................................ 766
Making some noise......................................................................................................... 775
The icon and launch images ........................................................................................ 777
The end................................................................................................................................ 780
Section 4: Store Search ..................................................... 782
Chapter 32: Search Bar..................................................... 783
Creating the project....................................................................................................... 785
Creating the UI................................................................................................................. 789
Doing fake searches ....................................................................................................... 795
UI Improvements ............................................................................................................ 800
Creating the data model............................................................................................... 803
iOS Apprentice
raywenderlich.com 13
No results found.............................................................................................................. 804
Chapter 33: Custom Table Cells .................................... 810
Custom table cells and nibs......................................................................................... 811
Changing the look of the app...................................................................................... 823
Tagging commits .............................................................................................................. 828
The debugger.................................................................................................................... 829
Chapter 34: Networking................................................... 838
Query the iTunes web service.................................................................................... 839
Sending an HTTP request............................................................................................ 843
Parsing JSON.................................................................................................................... 848
Working with the JSON results................................................................................. 857
Sorting the search results............................................................................................ 867
Chapter 35: Asynchronous Networking .................... 870
Extreme synchronous networking........................................................................... 871
The activity indicator..................................................................................................... 874
Making it asynchronous ............................................................................................... 881
Chapter 36: URLSession................................................... 888
Branching it ....................................................................................................................... 889
Putting URLSession into action................................................................................. 891
Cancelling operations.................................................................................................... 900
Searching different categories .................................................................................. 903
Downloading the artwork ........................................................................................... 909
Merge the branch............................................................................................................ 916
Chapter 37: The Detail Pop-Up ..................................... 919
The new view controller............................................................................................... 920
Adding the rest of the controls.................................................................................. 927
Showing data in the pop-up ........................................................................................ 934
Chapter 38: Polish the Pop-up ....................................... 941
Dynamic Type ................................................................................................................... 941
Gradients in the background...................................................................................... 952
iOS Apprentice
raywenderlich.com 14
Animation!......................................................................................................................... 956
Chapter 39: Landscape ..................................................... 962
The landscape view controller................................................................................... 963
Fixing issues ...................................................................................................................... 973
Adding a scroll view........................................................................................................ 978
Adding result buttons.................................................................................................... 984
Paging .................................................................................................................................. 992
Download the artwork.................................................................................................. 995
Chapter 40: Refactoring................................................... 999
Refactoring the search............................................................................................... 1000
Improving the categories .......................................................................................... 1007
Enums with associated values................................................................................. 1010
Spin me right round ..................................................................................................... 1016
Nothing found................................................................................................................ 1020
The Detail pop-up......................................................................................................... 1022
Chapter 41: Internationalization................................ 1025
Adding a new language .............................................................................................. 1026
Localizing on-screen text .......................................................................................... 1036
InfoPlist.strings ............................................................................................................. 1045
Regional settings .......................................................................................................... 1046
Chapter 42: The iPad....................................................... 1049
Universal apps ............................................................................................................... 1050
The split view controller............................................................................................ 1051
Improving the detail pane ......................................................................................... 1058
Size classes in the storyboard ................................................................................. 1064
Your own popover ........................................................................................................ 1071
Sending e-mail from the app .................................................................................... 1074
Landscape on iPhone Plus......................................................................................... 1078
Chapter 43: Distributing the App............................... 1082
Join the Apple Developer program ....................................................................... 1083
Beta testing..................................................................................................................... 1083
iOS Apprentice
raywenderlich.com 15
Submit for review......................................................................................................... 1101
The end............................................................................................................................. 1104
Conclusion........................................................................... 1107
More Books You Might Enjoy ...................................... 1108
New to iOS or Swift?................................................................................................... 1108
Experienced iOS developer?.................................................................................... 1110
Want to make games?................................................................................................. 1123
Want to learn Android or Kotlin?........................................................................... 1127

标签: iOS app

实例下载地址

《iOS Apprentice 7th》pdf

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警