Programming iOS 4: fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Beijing [u.a.]
O'Reilly & Associates
2011
|
Ausgabe: | 1., ed. |
Schlagworte: | |
Online-Zugang: | Inhaltstext Inhaltsverzeichnis |
Beschreibung: | XXII, 808 S. |
ISBN: | 9781449388430 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV039102456 | ||
003 | DE-604 | ||
005 | 20180117 | ||
007 | t | ||
008 | 110627s2011 |||| 00||| eng d | ||
015 | |a 10,N43 |2 dnb | ||
016 | 7 | |a 1007728213 |2 DE-101 | |
020 | |a 9781449388430 |c Pb. : EUR 43.00 (DE) (freier Pr.) |9 978-1-449-38843-0 | ||
024 | 3 | |a 9781449388430 | |
035 | |a (OCoLC)734093946 | ||
035 | |a (DE-599)DNB1007728213 | ||
040 | |a DE-604 |b ger |e rakddb | ||
041 | 0 | |a eng | |
049 | |a DE-355 |a DE-859 | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
084 | |a ST 326 |0 (DE-625)143662: |2 rvk | ||
084 | |a 004 |2 sdnb | ||
100 | 1 | |a Neuburg, Matt |e Verfasser |0 (DE-588)1079423230 |4 aut | |
245 | 1 | 0 | |a Programming iOS 4 |b fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4 |c Matt Neuburg |
250 | |a 1., ed. | ||
264 | 1 | |a Beijing [u.a.] |b O'Reilly & Associates |c 2011 | |
300 | |a XXII, 808 S. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 0 | 7 | |a iOS 4 |0 (DE-588)7728035-0 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a iOS 4 |0 (DE-588)7728035-0 |D s |
689 | 0 | |5 DE-604 | |
856 | 4 | 2 | |m X:MVB |q text/html |u http://deposit.dnb.de/cgi-bin/dokserv?id=3551008&prov=M&dok_var=1&dok_ext=htm |3 Inhaltstext |
856 | 4 | 2 | |m Digitalisierung UB Regensburg |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=022646361&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
943 | 1 | |a oai:aleph.bib-bvb.de:BVB01-022646361 |
Datensatz im Suchindex
_version_ | 1805096254590418944 |
---|---|
adam_text |
Table
of
Contents
Preface
.xvii
Part I. Language
1.
Just Enough
С
. 3
Compilation, Statements, and Comments
4
Variable Declaration, Initialization, and Data Types
6
Struets
8
Pointers
10
Arrays
11
Operators
13
Flow Control and Conditions
15
Functions
19
Pointer Parameters and the Address Operator
22
Files
24
The Standard
Libran1
27
More Preprocessor Directives
27
Data Type Qualifiers
28
2.
Object-Based Programming
. 31
Objects
31
Messages and Methods
32
Classes and Instances
33
Class Methods
36
Instance Variables
37
The Object-Based Philosophy
39
3.
Objective-C Objects and Messages
. 43
*<\n Instance Reference Is a Pointer
43
Instance References, Initialization, and nil
44
Instance
References and Assignment
47
Instance References and Memory Management
48
Messages and Methods
49
Sending a Message
50
Declaring a Method
51
Nesting Method Calls
52
No Overloading
52
Parameter Lists
53
Unrecognized Selectors
53
Typecasting and the id Type
55
Messages as Data Type
58
С
Functions and Struct Pointers
59
Blocks
61
4.
Objective-C Classes
.65
Class and Superclass
65
Interface and Implementation
66
Header File and Implementation File
68
Class Methods
71
The Secret Life of Classes
71
5.
Objective-C Instances
.73
How Instances Are Created
73
Ready-Made Instances
73
Instantiation from Scratch
74
Nib-Based Instantiation
77
Polymorphism
78
The Keyword self
79
The Keyword super
82
Instance Variables and Accessors
84
Key-Value Coding
86
Properties
87
How to Write an Initializer
89
Partii.
IDE
6.
Anatomy of an XcodeProjert
.95
New Project
96
The Project Window
97
The Navigator Pane
99
The Utilities Pane
103
The Editor
104
vi
I Table of Contents
The Project File and Its Dependents
106
The Target
109
Build Phases
109
Build Settings
110
Configurations 111
Schemes and Destinations
112
From Project to App
115
Build Settings
117
Property List Settings
117
Nib Files
118
Other Resources
118
Code
120
Frameworks and SDKs
121
7.
Nib Management
. 125
A Tour of the Nib-Editing Interface
125
The Dock
127
Canvas
128
Inspectors and Libraries
130
Nib Loading and File's Owner
132
Default Instances in the Main Nib File
133
Making and Loading a Nib
134
Outlet Connections
135
More Ways to Create Outlets
139
More About Outlets
141
Action Connections
142
Additional Initialization of Nib-Based Instances
146
8.
Documentation
.149
The Documentation Window
150
Class Documentation Pages
152
Sample Code
155
Other Resources
156
Quick Help
156
Symbols
157
Header Files
157
Internet Resources
158
9.
Life Cycle of a Project
.159
Choosing a Device Architecture
159
Localization
162
Editing Your Code
163
Autocompletion
164
Table of Contents I
vii
Snippets
165
Live Syntax Checking
166
Navigating Your Code
166
Debugging
169
Caveman Debugging
169
The Xcode Debugger
171
Static Analyzer
176
Clean
177
Running in the Simulator
177
Running on a Device
178
Device Management
181
Version Control
181
Instruments
184
Distribution
184
Ad Hoc Distribution
186
Final App Preparations
187
Icons in the App
188
Other Icons
189
Launch Images
189
Screenshots 190
Property List Settings
191
Submission to the App Store
192
Partili.
Cocoa
10.
Cocoa Classes
.197
Subclassing
197
Categories
200
Splitting a Class
201
Private Method Declarations
201
Protocols
202
Optional Methods
206
Some Foundation Classes
208
Useful Structs and Constants
208
NSString and Friends
208
NSDate and Friends
210
NSN umber
211
NSValue
211
NSData
212
Equality and Comparison
212
NSIndexSet
213
NSArray and NSMutableArray
213
viii
I Table of Contents
NSSet and Friends
215
NSDictionary and NSMutableDictionary
215
NSNull
217
Immutable and Mutable
217
Property Lists
218
The Secret Life of NSObject
218
11.
Cocoa Events
.223
Reasons for Events
224
Subclassing
224
Notifications
226
Receiving a Built-in Notification
226
Unregistering
228
NSTimer
228
Delegation
229
Data Sources
232
Actions
233
The
Responder
Chain
237
Deferring Responsibility
238
Nil-Targeted Actions
238
Application Lifetime Events
239
Swamped by Events
243
12.
Accessors and Memory Management
.249
Accessors
249
Key-Value Coding
251
Memory Management
254
The Golden Rules of Memory Management
255
How Cocoa Objects Manage Memory
257
Memory Management of Instance Variables
260
Instance Variable Memory Management Policies
263
Autorelease
264
Nib Loading and Memory Management
266
Memory Management Comments on Earlier Examples
267
Memory Management of Pointer-to-Void Context Info
269
Memory Management of
С
Struct Pointers
270
Properties
271
13.
Data Communication
.277
Model-View-Controller
277
Instance Visibility
279
Visibility by Instantiation
280
Visibility by Relationship
281
Table of Contents
1 ix
Global
Visibility
281
Notifications
282
Key-Value Observing
284
Part IV. Views
14.
Views
.293
The Window
293
Subview and Superview
295
Frame
298
Bounds and Center
299
Layout
302
Transform
305
Visibility and Opacity
308
15. Drawing
.311
Ullmage and UllmageView
311
Ullmage and Graphics Contexts
313
CGImage
315
Drawing a UlView
318
Graphics Context State
320
Paths
321
Clipping
325
Gradients
326
Colors and Patterns
328
Graphics Context Transforms
330
Shadows
332
Points and Pixels
332
Content Mode
333
16.
Layers
. 335
View and Layer
336
Layers and Sublayers
337
Manipulating the Layer Hierarchy
339
Positioning a Sublayer
339
CAScrollLayer
340
Layout of Sublayers
341
Drawing in a Layer
341
Contents Image
341
Contents on Demand
342
Contents Resizing and Positioning
343
Layers that Draw Themselves
345
χ
| Table of Contents
Transforms
346
Depth
350
Transforms and Key—Value Coding
352
Shadows, Borders, and More
353
Layers and Key-Value Coding
354
17.
Animation
.357
Drawing, Animation, and Threading
358
UllmageView Animation
361
View Animation
362
Animation Blocks
362
Modifying an Animation Block
363
Transition Animations
366
Block-Based View Animation
368
Implicit Layer Animation
371
Animation Transactions
372
Media Timing Functions
373
Core Animation
374
CABasicAnimation and Its Inheritance
375
Using a CABasicAnimation
376
Keyframe Animation
379
Making a Property Animatable
380
Grouped Animations
381
Transitions
385
The Animations List
386
Actions
389
What an Action Is
389
The Action Search
390
Hooking Into the Action Search
391
Nonproperty Actions
394
18.
Touches
.397
Touch Events and Views
398
Receiving Touches
400
Restricting Touches
401
Interpreting Touches
402
Gesture Recognizers
408
Distinguishing Gestures Manually
408
Gesture Recognizer Classes
412
Multiple Gesture Recognizers
416
Subclassing Gesture Recognizers
418
Gesture Recognizer Delegate
419
Touch Delivery
422
TableofContents I
xi
Hit-Testing
423
Initial Touch Event Delivery
427
Gesture Recognizer and View
427
Touch Exclusion Logic
429
Recognition
430
Touches and the
Responder
Chain
431
PartV. Interface
19.
View Controllers
.435
Creating a View Controller
437
Manual View Controller, Manual View
438
Manual View Controller, Nib View
441
Nib-Instantiated View Controller
443
No View
445
Up-Shifted Root View
446
Rotation
447
Initial Orientation
448
Rotation Events
452
Modal Views
453
Modal View Configuration
454
Modal View Presentation
456
Modal View Dismissal
457
Modal Views and Rotation
459
Tab Bar Controllers
461
Tab Bar Item Images
462
Configuring a Tab Bar Controller
463
Navigation Controllers
464
Bar Button Items
466
Configuring a Navigation Interface
468
Navigation Interface Rotation
474
View Controller Lifetime Events
476
View Controller Memory Management
477
20.
ScroliViews
.481
Creating a Scroll View
482
Scrolling
484
Paging
487
Tiling
488
Zooming
491
Zooming Programmatically
493
Zooming with Detail
493
xii 1
Table of Contents
Scroll View Delegate
499
Scroll View Touches
500
Scroll View Performance
503
21.
Table Views
.505
Table View Cells
507
Built-in Cell Styles
508
Custom Cells
512
Table View Data
517
The Three Big Questions
518
Table View Sections
521
Refreshing Table View Data
524
Variable Row Heights
526
Table View Selection
528
Table View Scrolling and Layout
533
Table View Searching
533
Table View Editing
539
Deleting Table Items
541
Editable Content in Table Items
543
Inserting Table Items
544
Rearranging Table Items
546
22.
Popovers
and Split Views
.549
Presenting a Popover
550
Managing a Popover
553
Dismissing a Popover
554
Automatic
Popovers
557
Split Views
558
23.
Text
. 563
UILabel
564
UITextField
565
Editing and the Keyboard
568
Configuring the Keyboard
572
Text Field Delegate and Control Event Messages
572
The Text Field Menu
574
UITextView
576
Core Text
579
24.
Web Views
.587
Loading Content
588
Communicating with a Web View
593
Table of Contents I
xiii
25.
Controls
and Other
Views
.
597
UIActivitylndicatorView
597
UIProgressView
598
UlPickerView
600
UISearchBar
602
UlControl
604
UlSwitch
605
UlPageControl 605
UIDatePicker
606
UISHder
609
UlSegmentedControl
612
UIButton
614
Custom Controls
617
Bars
620
UINavigationBar
621
UIToolbar
623
UITabBar
623
26.
Modal Dialogs
.629
Alert View
630
Action Sheet
631
Dialog Alternatives
635
Local Notifications
636
Part VI. Some Frameworks
27.
Audio
.643
System Sounds
643
Audio Session
644
Audio Player
648
Remote Control of Your Sound
650
Playing Sound in the Background
651
Further Topics in Sound
653
28.
Video
.655
MPMoviePlayerController
656
MPMoviePlayerVievvController
660
UiVideoEditorController
661
Further Topics in Video
662
29.
Music Library
.667
Exploring the Music
Librar)'
667
xiv
I Table of Contents
The Music Player
671
The Music Picker
675
30.
Photo Library
. 679
UllmagePickerController
679
Choosing from the Photo Library
680
Using the Camera
681
The Assets Library Framework
684
31.
AddressBook
. 687
Address Book Database
687
Address Book Interface
690
ABPeoplePickerNavigationController
690
ABPersonViewController
692
ABNewPersonViewController
692
ABUnknownPersonViewController
693
32.
Calendar
. 695
Calendar Database
695
Calendar Interface
700
33.
Mail
. 703
Mail Message
703
SMS Message
704
34.
Maps
. 705
Presenting a Map
705
Annotations
706
Overlays
712
35.
Sensors
. 717
Location
717
Heading and Course
719
Acceleration
720
Shake Events
721
UIAccelerometer
722
Core Motion
725
Table of Contents I
xv
Part
VII.
Final Topics
36.
Persistent Storage
.
729
The Sandbox 729
Basic File Operations
7-ЗД
Saving and Reading Files 73
1
User Defaults 733
File Sharing 735
Document Types /JJ
Handing Off a Document 737
XML 740
SQLite 746
Image File Formats 747
37.
Basic Networking
.751
HTTP Requests 751
Bonjour
7^7
Push Notifications
7·59
Beyond Basic Networking
760
38.
Threads
. 761
The Main Thread
761
Why Threading Is Hard
764
Three Ways of Threading
765
Manual Threads
766
NSOperation
768
Grand Central Dispatch
772
Threads and App Backgrounding
775
39.
Undo
. 779
The Undo Manager
779
The Undo Interface
782
The Undo Architecture
785
40.
Epilogue
. 787
Index
.789
xvi
I Table of Contents |
any_adam_object | 1 |
author | Neuburg, Matt |
author_GND | (DE-588)1079423230 |
author_facet | Neuburg, Matt |
author_role | aut |
author_sort | Neuburg, Matt |
author_variant | m n mn |
building | Verbundindex |
bvnumber | BV039102456 |
classification_rvk | ST 250 ST 326 |
ctrlnum | (OCoLC)734093946 (DE-599)DNB1007728213 |
discipline | Informatik |
edition | 1., ed. |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>00000nam a2200000 c 4500</leader><controlfield tag="001">BV039102456</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20180117</controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">110627s2011 |||| 00||| eng d</controlfield><datafield tag="015" ind1=" " ind2=" "><subfield code="a">10,N43</subfield><subfield code="2">dnb</subfield></datafield><datafield tag="016" ind1="7" ind2=" "><subfield code="a">1007728213</subfield><subfield code="2">DE-101</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781449388430</subfield><subfield code="c">Pb. : EUR 43.00 (DE) (freier Pr.)</subfield><subfield code="9">978-1-449-38843-0</subfield></datafield><datafield tag="024" ind1="3" ind2=" "><subfield code="a">9781449388430</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)734093946</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)DNB1007728213</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakddb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-355</subfield><subfield code="a">DE-859</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 326</subfield><subfield code="0">(DE-625)143662:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">004</subfield><subfield code="2">sdnb</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Neuburg, Matt</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1079423230</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Programming iOS 4</subfield><subfield code="b">fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4</subfield><subfield code="c">Matt Neuburg</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">1., ed.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Beijing [u.a.]</subfield><subfield code="b">O'Reilly & Associates</subfield><subfield code="c">2011</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XXII, 808 S.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">iOS 4</subfield><subfield code="0">(DE-588)7728035-0</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">iOS 4</subfield><subfield code="0">(DE-588)7728035-0</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">X:MVB</subfield><subfield code="q">text/html</subfield><subfield code="u">http://deposit.dnb.de/cgi-bin/dokserv?id=3551008&prov=M&dok_var=1&dok_ext=htm</subfield><subfield code="3">Inhaltstext</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Regensburg</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=022646361&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="943" ind1="1" ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-022646361</subfield></datafield></record></collection> |
id | DE-604.BV039102456 |
illustrated | Not Illustrated |
indexdate | 2024-07-20T11:12:15Z |
institution | BVB |
isbn | 9781449388430 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-022646361 |
oclc_num | 734093946 |
open_access_boolean | |
owner | DE-355 DE-BY-UBR DE-859 |
owner_facet | DE-355 DE-BY-UBR DE-859 |
physical | XXII, 808 S. |
publishDate | 2011 |
publishDateSearch | 2011 |
publishDateSort | 2011 |
publisher | O'Reilly & Associates |
record_format | marc |
spelling | Neuburg, Matt Verfasser (DE-588)1079423230 aut Programming iOS 4 fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4 Matt Neuburg 1., ed. Beijing [u.a.] O'Reilly & Associates 2011 XXII, 808 S. txt rdacontent n rdamedia nc rdacarrier iOS 4 (DE-588)7728035-0 gnd rswk-swf iOS 4 (DE-588)7728035-0 s DE-604 X:MVB text/html http://deposit.dnb.de/cgi-bin/dokserv?id=3551008&prov=M&dok_var=1&dok_ext=htm Inhaltstext Digitalisierung UB Regensburg application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=022646361&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Neuburg, Matt Programming iOS 4 fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4 iOS 4 (DE-588)7728035-0 gnd |
subject_GND | (DE-588)7728035-0 |
title | Programming iOS 4 fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4 |
title_auth | Programming iOS 4 fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4 |
title_exact_search | Programming iOS 4 fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4 |
title_full | Programming iOS 4 fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4 Matt Neuburg |
title_fullStr | Programming iOS 4 fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4 Matt Neuburg |
title_full_unstemmed | Programming iOS 4 fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4 Matt Neuburg |
title_short | Programming iOS 4 |
title_sort | programming ios 4 fundamentals of iphone ipad and ipod touch development covers ios 4 3 and xcode 4 |
title_sub | fundamentals of iPhone, iPad, and iPod touch Development ; covers iOS 4.3 and Xcode 4 |
topic | iOS 4 (DE-588)7728035-0 gnd |
topic_facet | iOS 4 |
url | http://deposit.dnb.de/cgi-bin/dokserv?id=3551008&prov=M&dok_var=1&dok_ext=htm http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=022646361&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT neuburgmatt programmingios4fundamentalsofiphoneipadandipodtouchdevelopmentcoversios43andxcode4 |