iPhone 4 and iPad development based tutorial

Original link: http://www.cnblogs.com/china-pub/archive/2011/07/12/2104319.html

iPhone 4 and iPad development based tutorial

Create sales miracle classic for a comprehensive revision of the new features iOS SDK
coming from here, embrace software development

Basic Information

原书名:Beginning iPhone 4 Development: Exploring the iOS SDK

Original Publisher: Apress

Author: (US) Dave Mark    Jack Nutting    Jeff LaMarche   [Translator for presentation]

Translator: paint Zhen Yang Yue Sunwen Lei

Series Title: Turing Programming Series

Press: People Post Press

ISBN:9787115255525

Added time: 2011-7-8

Publication Date: July 2011

http://product.china-pub.com/198329

2011071215162190.jpg
"IPhone 4 and iPad development based tutorial" eBook Online Reading

brief introduction

  iphone is a new mobile platform, Apple launched it a powerful software development kit ios sdk. This book is a basic tutorial on ios sdk development, informative, vivid language. The book binding apparatus commonly found on consumer instance, explained step by step 4, ipad and ipod touch basic process is applicable to the development of iphone, download and install the development tool to the various interface elements ios, from a different view to the design pattern Construction tips tables, as well as sqlite, coredata and other persistence technologies, covering all aspects of ios development.
   "Iphone 4 and ipad development based tutorial" content full and rich, with strong versatility, the field of programming at all levels through this book the reader can quickly learn ios development, improve relevant skills.

table of Contents

"Iphone 4 and ipad Development Foundation Tutorial"
Chapter 1 Welcome to the world iphone 1
1.1 About the Book 1
1.2 1 requirement
1.2.1 developer's choice 3
1.2.2 necessary knowledge 4
1.3 What's the difference writing ios app 4
1.3.1 only one application is running 5
1.3.2 only one window 5
1.3.3 limited access 5
1.3.4 limited response time 5
1.3.5 5 limited screen size
1.3.6 limited system resources 6
1.3 6 .7 garbage collection does not support
6 new features 1.3.8
1.3.9 different approach 7
1.4 the book 7
1.5 update content 8
1.6 8 ready to begin
Chapter 2 create a basic item 9
.2.1 in xcode setting items. 9
2.2 Introduction Builder interface 14
configuration files 2.2.1 nib 15
2.2.2 Add tags 16 in the view
2.2.3 change attribute 18
2.3 iphone landscaping applications 19
2.4 22 Summary
Chapter 3 basic interaction processing 23
3.1 23 MVC paradigm
3.2 Creating Project 24
3.3 Create View Controller 24
3.3.1 outlet 25
3.3.2 Operation 26
3.3.3 operation and the output port 27 to the view controller
3.3.4 the add operation and the output port 30 to the implementation file
3.4 delegate application 34
3.5 36 edit MainWindow.xib
3.6 editor 37 button_funviewcontroller.xib
3.6.1 interface builder to create the view 37
3.6.2 40 connects all the elements
3.6.3 test 43
3.7 Summary 43
Chapter 4 richer user interface 44
4.1 full-screen controls 44
4.2 46 active and passive controls
4.3 to create an application 46
4.4 achieve view images and text fields 47
4.4.1 determine the output port 47
4.4.2 determine the operating 48
4.4.3 Add an image view 49
4.4.4 Add text field 52
4.4.5 a second text field attribute 55
4.4.6 connect the output port 55
Close keyboard 55 4.5
4.5.1 56 to close the keyboard input is completed
4.5.2 BACKGROUND closed by touching a keyboard 57
4.6 59 implemented slider and tags
4.6.1 operation and determine the output port 59
4.6.2 Add 60 operations and outputs
4.6.3 add a slider and tags 61
4.6.4 connecting operation and the output port 62
4.7 implement switches, buttons, and the segment control 62
4.7.1 Add 62 outputs and operating
4.7.2 add switches, buttons, and the segment 65 controls
4.7.3 connection and the operation switch output port 66
4.7.4 Add button 66
67 4.8 table operation and implement alarms
4.8.1 compliance The method of operating table 67 delegate
4.8.2 display operation table 68
4.8.3 delegate using the operation table 70
4.9 71 landscaping button
4.9.1 method 71 viewdidload
4.9.2 state control 72
4.9.3 stretchable image 72
4.10 73 become an excellent user memory
4.11 74 Summary
Chapter 5 75 automatically rotates and automatically adjust the size of
5.1 automatic rotation mechanism 75
5.2 automatically adjust the rotation processing properties 77
5.2.1 Specify rotation support 77
to automatically adjust the properties design interface 79 5.2.2
5.2.3 automatically adjust the size of the property inspector 80
5.2.4 Settings button 81 automatically adjusts the attributes
5.3 reconstructed view is rotated 82
5.3.1 Statement and an output port 83 connected
5.3.2 button 84 moves while rotating
5.4 switching view 85
5.4.1 operation determines the output port 86 and
5.4.2 and the output port 87 the operation declarations
5.4.3 design two views 88
5.4.4 enabling the exchange and operation 88
5.5 91 Summary
Chapter 6 multiview application 92
over 6.1 common type of view of the application of the 92
architecture view of the application of more than 6.2 94
6.2.1 root controller 95
6.2.2 Analysis view content 96
6.3 construction of view switcher 96
6.3.1 create a view controller and nib file 97
6.3.2 modify the application commissioned 99
6.3.3 switchviewcontroller.h 101
6.3.4 Add the view controller 101
view 6.3.5 build toolbar contains 103
6.3.6 write root view controller 104
6.3.7 for content view 108
6.3.8 create animation converter 110
6.4 113 Summary
Chapter 7 and tab bar picker 114
7.1 Pickers application 114
7.2 delegate data source 117 and
7.3 to establish the toolbar frame 117
7.3.1 Create File 117
7.3 Add 118 root view controller .2
7.3.3 edit 120 MainWindow.xib
7.3.4 connected to the output port, then run 123
7.4 implement date picker 124
7.5 126 implement a single picker assembly
7.5.1 declaration operation 126 and output port
7.5. Construction of view 2 127
7.5.3 controller implemented as a data source and delegate 127
7.6 multi picker assembly 131
7.6.1 statement outlet 131 and operation
7.6.2 Construction of view 132
7.6.3 controller 132 implemented
7.7 assembly independence 135
7.8 use custom picker to create a simple game 141
7.8.1 write controller headers 141
7.8.2 build 142 view
7.8.3 Add image resources 143
7.8.4 implement the controller 143
149 last detail 7.8.5
7.8.6 Link audio toolbox frame 153
7.9 154 Summary
Chapter 8, Table View Profile 155
8.1 156 base view table
8.1.1 table view and table unit 156 views
8.1.2 packet table 157 table and unformatted
8.2 to achieve a simple table 158
8.2.1 design view 158
8.2.2 write controller 158
8.2.3 add an image 161
8.2.4 table view style unit 163
8.2.5 165 disposed indent level
selection process line 8.2.6 165
8.2.7 change the font size and line height 167
8.3 168 cells customize table
8.3.1 application unit 168
8.3.2 custom subclass uitableviewcell 172
8.4 176 packet and index partitioning
8.4.1 Construction of view 176
8.4. 2 importing data 177
8.4.3 implement the controller 177
8.4.4 181 index added
8.5 to realize the search bar 181
8.5.1 reconsider design 181
8.5.2 deep copy of variable 182
8.5.3 header file update controller 184
8.5.4 modify the view 185
8.5.5 Review controllers 186
8.6 197 Summary
Chapter 9 navigation controller 198 and the table view
9.1 navigation controller 198
Properties of stack 198 9.1.1
9.1. the stack controller 199 2
9.2 layered application consists of six parts: nav 200 is
200 is a sub-controller 9.2.1
9.2.2 skeleton nav application 203
9.2.3 a first sub-controllers: display view button 209
9.2 .4 second sub-controllers: checking table 217
control line 221 on the table: a third sub-controllers 9.2.5
9.2.6 fourth sub-controllers: a movable line 227
9.2.7 fifth sub-controllers: You can delete rows 233
9.2.8 sixth sub-controllers: detailed editable pane 239
9.2.9 other content 257
9.3 Summary 260
Chapter 10 ipad development Important 261
10.1 split view and a floating window 261
10.2 Creating a project splitview 263
10.3 xib definition structure 264
10.4 265 function code defines
10.5 272 displays information President
Create a floating window 276 10.6
10.7 282 Summary
Chapter 11 application settings and user default settings 283
11.1 beam set 283
11.2 appSettings application 284
11.2.1 create a project 286
11.2.2 286 using a bundle
11.2.3 reads application setting 297
defaults change application 11.2.4 302
11.2.5 305 realism achieved
11.3 brief summary 307
Chapter 12 holds data 308
sandboxed application 308 12.1
12.1.1 obtain documents directory 309
12.1.2 Get tmp directory 310
document retention policies 310 12.2
12.2.1 single file persistence 310
plurality of persistent files 311 12.2.2
attribute list 311 12.3
12.3.1 serialization attribute list 311
12.3.2 persistent application 312 first version
12.4 pairs model archiving object 317
12.4.1 318 in line with the NSCoding
12.4.2 achieve nscopying 319
12.4.3 data objects are archived and unarchived 319
12.4.4 archiving applications 320
12.5 324 using iphone embedded sqlite3
12.5.1 to create or open a database 325
12.5.2 bind variables 327
12.5.3 sqlite3 applications 327
12.6 use the Data 334 Core
12.6.1 entity and the managed object 335
12.6.2 the Data Core applications 339
12.7 Summary 348
Chapter 13 grand central dispatch, background processing and its applications 349
13.1 Grand Central dispatch 349
13.2 Introduction 350 slowworker
13.3 thread basics 352
13.4 units of work 353
13.5 gcd: lower queue 354
13.5.1 fool-operation 354
13.5.2 355 improvements slowworker
13.6 background processing 360
13.6.1 application life cycle 361
13.6.2 state change notification 361
13.6.3 Creating Lab 363 state
13.6 .4 execution state 364
13.6.5 use of a state change 365
13.6.6 processing inactive 366
13.6.7 processing background state 370
13.7 Summary 378
Chapter 14 drawing using quartz and opengl 379
14.1 Graphical two views of the world 379
14.2 380 Quart drawing methods
14.2. 1 quartz 2d graphics context 380
14.2.2 coordinate system 381
14.2.3 382 designated color
14.2.4 rendered image 383 in the context
14.2.5 draw shapes: polygons, lines and curves 383
14.2.6 Quartz 2D tool example: mode, gradient, dash pattern 384
14.3 quartzfun application 384
14.3.1 build quartzfun application 384
14.3.2 394 to add the code quartz drawing
14.3.3 quartzfun optimization application 398
14.4 glfun application 401
14.4.1 build glfun application 402
14.4.2 use opengl drawing 404
14.4.3 411 complete glfun
14.5 Summary 411
Chapter 15 tap, and a touch gesture 412
over 15.1 term touch 412
15.2 413 responder chain
15.2.1 responder chain objects 413
15.2.2 forwarding events: responder chain holder 414 active
over 15.3 touch architecture 415
15.3.1 touch where the relevant code in the 415
15.3.2 gesture notification method 415 4
15.4 416 detects a touch
15.4.1 construct a touch explorer application 417
15.4.2 419 running touch explorer
15.5 swipe is detected 419
15.5.1 Construction swipes application 420
15.5.2 423 using an automatic hand gesture recognition
15.5.3 implement multiple swipe operation 424
15.6 425 detects multiple tap
15.7 kneaded detection operation 430
15.8 creating and using custom gestures 433
15.8.1 defined checkmark gesture 433
15.8.2 attached to the checkmark gesture view 435
15.9 437 Summary
Chapter 16 core location positioning function 438
16.1 438 location manager
accuracy required 439 disposed 16.1.1
16.1.2 Set the distance filter 439
16.1.3 start location manager 439
16.1.4 use more wisely location manager 440
16.2 location manager commissioned 440
16.2.1 obtain updates 440
16.2.2 Use cllocation obtain the latitude and longitude 440
16.2.3 error notification 442
16.3 442 lOCATION try to use Core
16.3.1 update location manager 446
16.3.2 determine the movement distance of 447
16.4 Summary 447
Chapter 17 accelerometers 448
17.1 accelerometer physics 448
17.2 Do not forget to rotate 449
17.3 Core Motion and the action manager 449
17.3.1 450 based on the operation event
to access active action 455 17.3.2
17.3.3 results accelerometer 457
17.4 shake detector 458
17.4.1 Baked-in pan 459
17.4.2 459 swing and break
17.5 to accelerate count controller 464 as a direction
17.5.1 roller marbles program 464
17.5.2 prepared by ball view 466
17.5.3 calculation of ball sports 469
17.6 Summary 472
Chapter 18 iphone camera and photo gallery 473
18.1 using the image picker and the Controller 474-uiimagepicker
18.2 achieve image picker controller commissioned 475
18.3 actual test camera and library 476
18.3.1 Design interface 477
18.3.2 achieve view camera controller 477
18.4 Summary 481
Chapter 19 application Localization 482
19.1 localization architecture 482
19.2 string file 483
19.2.1 What is inside the string file 484
19.2.2 localized characters macro string 484
19.3 reality iphone: localized applications 485
19.3.1 create 485 localizeme
19.3.2 489 test localizeme
19.3.3 localized nib file 489
19.3.4 localized image 492
19.3.5 generation and localized strings file 493
19.3.6 localized application display name 495
19.4 Summary 496
Chapter 20 the Road Ahead 497
20.1 do not fall into the trap of thinking in a single 497
20.1.1 Apple's documentation 497
20.1.2 Mailing lists 498
20.1.3 Forum 498
20.1.4 site 499
20.1.5 blog 499
20.2 References 500
20.3 On 501
20.4 501 Goodbye

Reproduced in: https: //www.cnblogs.com/china-pub/archive/2011/07/12/2104319.html

Guess you like

Origin blog.csdn.net/weixin_30344131/article/details/94930816