Basic tutorial for iOS 5

Source: Internet
Author: User

Basic tutorial for iOS 5 (the latest version of iPhone 4 and iPad development tutorial, a classic book that creates a sales miracle)
Basic Information
Author: (US) mark (mark, D.) (US) Nadine (nutting, J.) (US) lamarche, J.) [Translator's introduction]
Translator: Mao Wenwen
Press: People's post and telecommunications Press
ISBN: 9787115290991
Mounting time:
Published on: February 1, September 2012
Start: 16
Page number: 1
Version: 1-1
Category: Computer

For more information, see the latest version of the classic book iPhone 4 and iPad basic development tutorial, which creates a sales miracle)
Introduction
Books
Computer books
IOS is now a popular mobile platform, and Apple has released a powerful software development kit ios sdk for it. This book is a basic tutorial on iOS SDK development. The content is informative and the language is vivid. Several authors explain the basic process for iPhone 4 s, iPad 2, and iPod Touch development step by step based on common examples on consumer devices. The new version introduces the powerful iOS 5 operating system, which covers new functions since xcode 4. The most notable features are storyboard and iCloud. The new sections will be detailed in the book. All projects in this book are re-created using xcode 4.2, allowing developers to fully feel the exciting new changes brought about by xcode 4.
The basic tutorial for iOS 5 has a strong versatility. Readers at all levels in the programming field can quickly learn iOS development through this book to improve related skills.
Directory
Basic tutorial for iOS 5
Chapter 1 Welcome to IOS world 1
1.1 about book 1
1.2 Prerequisites 1
1.2.1 developer selection 3
1.2.2 required knowledge 4
1.3 What is the difference between writing IOS apps? 5
1.3.1 only one application is running 5
1.3.2 only one window 5
1.3.3 restricted access 5
1.3.4 limited response time 6
1.3.5 limited screen size 6
1.3.6 limited system resources 6
1.3.7 garbage collection is not supported.
1.3.8 new feature 7
1.3.9 distinctive methods 7
1.4 book content 7
1.5 content of this update 9
1.6 prepare for start 9
Chapter 1 create basic project 10
2.1 set project 10 in xcode
2.1.1 xcode work zone window 14
2.1.2 in-depth research project 21
2.2 Introduction to interface builder 23
2.2.1 composition of the NIB file 24
2.2.2 database 25
2.2.3 Add a label to the view 26
2.2.4 Attribute Modification 29
2.3 iPhone app beautification 30
2.4 Summary 34
Chapter 5 basic interaction 35
3.1 MVC model 35
3.2 Create a project 36
3.3 View Controller 37
3.3.1 understand the output port and operation 38
3.3.2 clear view controller 41
3.3.3 Design User Interface 41
3.3.4 Test Project 51
3.4 understand application delegation 51
3.5 summary 55
Chapter 1 richer User Interface 56
4.1 screen full of controls 56
4.2 active, static, and passive controls 58
4.3 create an application 59
4.4 implement Image view and text field 59
4.4.1 add Image view 59
4.4.2 adjust image view 61
4.4.3 set view attributes 62
4.4.4 add text field 65
4.4.5 create and connect the output port 70
4.5 disable keyboard 71
4.5.1 close the keyboard after the input is complete 72
4.5.2 close the keyboard 73 by touching the background
4.5.3 add slider and label 75
4.5.4 connection operation and output port 77
4.5.5 implementation Operation Method 77
4.6 implement switch, button and segment control 78
4.6.1 add two switches with labels
4.6.2 connection switch output port and operation 80
4.6.3 how to implement the switch 80
4.6.4 Add button 81
4.6.5 create and associate the button with the output port and operation 82
4.6.6 how to implement the segment control 82
4.7 implement operation table and alarm 82
4.7.1 follow the operating table delegate method 83
4.7.2 show operation table 83
4.8 beautify button 86
4.8.1 viewdidload method 87
4.8.2 control status 87
4.8.3 tensile image 88
4.9 summary 88
Chapter 3 automatic rotation and automatic resizing 89
5.1 automatic rotation mechanism 89
5.1.1 point, pixel, and retina display 90
5.1.2 automatic screen conversion method 91
5.2 use auto-adjusted attributes to process rotation 91
5.2.1 configure application support direction 91
5.2.2 The specified rotation supports 92
5.2.3 use the auto-adjust attribute design interface 93
5.2.4 automatic adjustment attribute of the size checker 94
5.2.5 set the button to automatically adjust the attribute 96
5.3 rebuilding the view during rotation 97
5.3.1 create and connect the output port 98
5.3.2 move the button 99 during rotation
5.4 switch view 100
5.4.1 design two views 101
5.4.2 achieve exchange 102
5.4.3 modify the output port set 104
5.5 conclusion 104
Chapter 2 multi-view applications 6th
6.1 common types of multi-view applications 106
6.2 architecture of multi-view applications 109
6.2.1 root controller 110
6.2.2 content View analysis 111
6.3 build view switcher 111
6.3.1 create View Controller and NIB file 112
6.3.2 modify application delegate 114
6.3.3 modify bidswitchview controller. h 116
6.3.4 add View Controller 116
6.3.5 build a view containing the toolbar 117
6.3.6 write the Root View Controller 119
6.3.7 implement content view 123
6.3.8 create a conversion animation 126
6.4 conclusion 128
Chapter 2 label bar and Selector 7th
7.1 pickers application 130
7.2 delegate and Data Source 132
7.3 create a tag bar framework 132
7.3.1 Create File 133
7.3.2 Add the Root View Controller 134
7.3.3 create tabbarcontroller. XIB 135
7.3.4 connect to the output port and then run 140
7.4 date selector 141
7.5 Single Component selector 144
7.5.1 declaration of output ports and Operations 144
7.5.2 build view 145
7.5.3 implement controller as data source and delegate 146
7.6 implement multi-component selector 149
7.6.1 declare the output port and perform operations 150
7.6.2 build view 150
7.6.3 implement controller 150
7.7 implement dependency components 153
7.8 use a custom selector to create a simple game 160
7.8.1 compile controller header file 160
7.8.2 build view 160
7.8.3 add image resource 161
7.8.4 implement controller 161
7.8.5 last detail 166
7.8.6 link to audio toolbox framework 170
7.9 conclusion 171
Chapter 2 Table view introduction 8th
8.1 basic table view 172
8.1.1 table view and table view unit 173
8.1.2 group table and unformatted Table 174
8.2 implement a simple table 175
8.2.1 Design view 175
8.2.2 write controller 176
8.2.3 add an image 179
8.2.4 table view Unit style 181
8.2.5 set indent level 182
8.2.6 select 183 for processing rows.
8.2.7 change the font size and Row Height by 185
8.3 customized table view unit 186
8.3.1 Add a subview 186 to a table view Unit
8.3.2 create uitableviewcell subclass 187
8.3.3 load uitableviewcell 192 from the NIB file
8.4 group partitions and index partitions 197
8.4.1 build view 197
8.4.2 import data 197
8.4.3 implement controller 198
8.4.4 add an index 201
8.5 implement search bar 202
8.5.1 reconsider design 203
8.5.2 deep copy 203
8.5.3 update the Controller header file 205
8.5.4 modify view 206
8.5.5 modify the Controller to implement 210
8.6 conclusion 221
Chapter 2 navigation controller and table view 9th
9.1 navigation controller 222
9.1.1 stack 222
9.1.2 controller stack 223
9.2 layered application composed of six parts: nav 224
9.2.1 subcontroller 225
9.2.2 skeleton 228 of the nav Application
9.2.3 add image 234 to the Project
9.2.4 first sub-Controller: Display button view 235
9.2.5 second subcontroller: verification table 242
9.2.6 third sub-Controller: Control 246 on the table row
9.2.7 fourth sub-Controller: movable row 252
9.2.8 fifth sub-Controller: Delete row 257
9.2.9 sixth sub-Controller: editable detail pane 262
9.2.10 other content 280
9.3 conclusion 282
Chapter 2 storyboard 10th
10.1 create a simple storyboard 285
10.2 Dynamic Prototype Unit 287
10.2.1 dynamic table content using storyboard 288
10.2.2 edit Prototype Unit 289
10.2.3 implement table View data source 290
10.2.4 will it load 292
10.3 static unit 293
10.3.1 static unit 293
10.3.2 implement table View data source 294
10.4 big talk segue 296
10.4.1 create segue navigation 296
10.4.2 design storyboard 297
10.4.3 first segue 299
10.4.4 list of more practical tasks 299
10.4.5 view task details 300
10.4.6 set more segue 301
10.4.7 transfer task 301 from the list
10.4.8 handling task details 303
10.4.9 return details 304
10.4.10 obtain detailed information from the list 305
10.4.11 summary 306
Chapter 2 precautions for iPad Development 11th
11.1 split view and floating window 307
11.1.1 create splitview project 309
11.1.2 define structure 310 in storyboard
11.1.3 Code definition function 311
11.2 show President information 318
11.3 create a floating window 324
11.4 conclusion 329
Chapter 2 application settings and user default settings 12th
12.1 set bundle 330
12.2 appsettings application 331
12.2.1 Create Project 333
12.2.2 use set bundle 334
12.2.3 read the settings in the application 346
12.2.4 default value for registration: 350
12.2.5 change the default settings in the Application 351
12.2.6 achieve a realistic effect of 354
12.3 conclusion 357
Chapter 4 saving data 13th
13.1 sandbox 358 of applications
13.1.1 obtain the documents directory 360
13.1.2 obtain the tmp directory 360
13.2 file storage policy 361
13.2.1 single file persistence 361
13.2.2 multi-file persistence 361
13.3 attribute list 361
13.3.1 attribute list serialization 362
13.3.2 first version of the persistent application 363
13.4 Archiving Model Objects 368
13.4.1 compliance with nscoding 368
13.4.2 implement nscopying 369
13.4.3 archiving and canceling Data Objects 370
13.4.4 archive application 371
13.5 use IOS Embedded sqlite3 374
13.5.1 create or open database 375
13.5.2 Bind Variable 376
13.5.3 sqlite3 application 377
13.6 use core data 383
13.6.1 entity and managed object 385
13.6.2 core data application 388
13.7 conclusion 398
Chapter 4 iCloud journey 14th
14.1 use uidocument to manage document storage 399
14.1.1 build tinypix 400
14.1.2 create bidtinypixdocument 401
14.1.3 master Code 404
14.1.4 initialize storyboard 410
14.1.5 create bidtinypixview 412
14.1.6 Design of storyboard 416
14.2 support for 419
14.2.1 create provisioning profile 420
14.2.2 enable iCloud authorization 420
14.2.3 how to query 421
14.2.4 where to save 423
14.2.5 storage preference 423 on iCloud
14.3 conclusion 424
Chapter 2 grand central dispatch, background processing and applications 15th
15.1 Grand Central Dispatch 426
15.2 slowworker introduction 427
15.3 basic thread knowledge 430
15.4 unit of work 430
15.5 GCD: low-level queue 431
15.5.1 silly operation 431
15.5.2 improved slowworker 432
15.6 background processing 438
15.6.1 application lifecycle 439
15.6.2 status change notice 439
15.6.3 create state lab 441
15.6.4 execution status 442
15.6.5 change 444 using execution status
15.6.6 handle inactive status 444
15.6.7 processing background status 449
15.7 conclusion 457
Chapter 2 drawing with quartz and OpenGL 16th
16.1 two views in the graphic world 458
16.2 quart 2D Plotting Method 459
16.2.1 quartz 2D graphic context 459
Coordinate System 460
16.2.3 specified color 461
16.2.4 draw an image in the context 463
16.2.5 draw shape: polygon, straight line, and curve 463
16.2.6 Z 2D tool sampler: pattern, gradient, dotted line pattern 464
16.3 quartzfun application 465
16.3.1 build quartzfun app 465
16.3.2 add quartz drawing code 474
16.3.3 optimize the quartzfun application 478
16.4 glfun application 481
16.4.1 build glfun app 482
16.4.2 create bidglfunview 482
16.4.3 update bidviewcontroller 489
16.4.4 update nib 490.
16.4.5 glfun 490 completed
16.5 conclusion 490
Chapter 2 click, touch, and gesture 17th
17.1 multi-touch terminology 491
17.2 responder chain 492
17.2.1 RESPONSE event 492
17.2.2 forwarding event: Keep the active status of the responder chain 493
17.3 multi-touch architecture 494
17.4 four gesture notification methods 494
17.5 touch detection 495
17.6 scan 498
17.6.1 use auto Gesture Recognition 502
503
17.7 detect multiple attacks 505
17.8 check and Kneading operation 509
17.9 create and use custom gestures 512
17.9.1 checkplease 512
17.9.2 checkplease touch method 514
17.10 conclusion 516
Chapter 2 core location positioning function 18th
18.1 Location Manager 517
18.1.1 set the precision to 518
18.1.2 set the distance filter to 518
18.1.3 start location manager 519
18.1.4 more wise to use location manager 519
18.2 Location Manager delegate 519
18.2.1 update location 519
18.2.2 use cllocation to obtain latitude and longitude 519
18.2.3 Error Notification 521
18.3 try to use core location 522
18.3.1 update Location Manager 525
18.3.2 determine the moving distance of 526
18.4 conclusion 527
Chapter 2 gyroscope and accelerator 19th
19.1 accelerometer physics 528
19.2 don't forget to rotate 529
19.3 Core Motion and Action Manager 529
19.3.1 event based action 530
19.3.2 active action access 535
19.3.3 acceleration result 537
19.4 detect shaking 537
19.4.1 baked-in shake 538
19.4.2 shake and smash 539
19.5 use the accelerator as the direction controller 544
19.5.1 ball rolling program 545
19.5.2 write ball view 547
19.5.3 Calculation of ball motion 549
19.6 conclusion 552
Chapter 2 iPhone camera and photo library 20th
20.1 use image selector and uiimagepickercontroller 553
20.2 enable image selector controller delegation 555
20.3 actual test cameras and libraries 556
557 design page
Camera View Controller 558
20.4 conclusion 562
Chapter 2 Application localization 21st
21.1 localization architecture 563
21.2 string file 564
21.2.1 what is 565 in a string file?
21.2.2 localized string macro 565
21.3 iOS in reality: localized application 566
21.3.1 creating localizeme 567
21.3.2 test localizeme 569
21.3.3 localized NIB file 570
21.3.4 localized image 573
21.3.5 generation and localization of string files 575
21.3.6 localized application display name 577
21.4 conclusion 578
Chapter 1 Road to the future 22nd
22.1 Apple documents 579
22.2 email list 579
22.3 Forum 580
22.4 website 580
22.5 blog 581
22.6 meeting 582
22.7 authors 582
22.8 and then 583

This book is from: China Interactive publishing network

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.