مشخصات کتاب
-
Steve Derico
-
2016
-
انگلیسی
-
26521
-
753
-
0
Introducing iOS 8
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1. Getting Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Your Path to Success 1
The App Store 2
How to Install Xcode 6 7
What You Will Need 8
2. Introduction to Programming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Building Blocks 11
Variables 11
Integer 12
Float 12
Boolean 12
String 12
Classes 12
Objects 13
Methods 15
Inheritance 16
Model, View, Controller 17
Model 18
View 19
Controller 20
Exercise: Hello World 21
Storyboards 46
3. Diving into Swift. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
What Is Swift? 55
Playgrounds 55
Creating Variables 58
Integers 59
Float 59
Boolean 59
Strings 59
Objects 60
Constants 60
Type Inference 61
Modifying Strings 61
Appending Strings 62
Variables in Strings 62
Collections 63
Arrays 63
Dictionaries 65
Loops 66
For-Condition-Increment 66
for-in 67
Ranges 68
Conditional Statements 68
if Statements 69
if-else 69
Optionals 70
Exercise: Tip Calculator 71
4. Diving Deeper. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Methods 97
Return Values 99
Classes 100
Properties 100
Methods 101
Creating an Object 101
Accessing Properties 102
Calling Methods 103
Subclasses 103
Inheritance 103
Overriding 104
Exercise: Race Car 105
5. Building Multiscreen Apps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
View Controllers 135
UIViewController 135
UINavigationController 136
Table View 138
Delegation 138
UITableViewController 139
UITableViewDataSource 139
Exercise: Passport 143
6. Next Steps: Debugging, Documentation, and App Icons. . . . . . . . . . . . . . . . . . . . . . . . . 163
Why Debugging? 163
Compile-Time Issues 163
Errors 165
Warnings 165
Runtime Issues 166
Breakpoints 166
Using the Debugger 168
Documentation 169
Sample Code 171
How to Get the Most Out of Documentation 171
App Icons 172
Launch Image 174
Exercise: Expanding the Passport App 174
Documentation 181
App Icon 183
7. Devices and Auto Layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Screen Sizes 187
Retina Displays 187
Orientation 188
Universal Apps 189
Auto Layout 189
Attributes 192
Values 193
Intrinsic Size 193
Priority 193
Creating Constraints 194
The Control-Drag Method 194
Auto Layout Buttons 194
The Guidelines Method 197
Testing Layout Constraints 199
Previewing 200
Exercise: Building More on the Passport App 201
8. Maps and Location. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Core Location 214
Requesting User Location 215
Map Kit 218
MKMapView 218
Directions 219
Plotting Points 219
Exercise: Adding Maps to the Passport App 220
9. Camera, Photos, and Social Networks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
UIImagePickerController 235
Cameras 236
Media Types 237
Delegates 238
Working with Images 239
Working with Multiple Media Types 239
Presenting UIImagePickerController 241
Integrating with Social Networks 242
Setting the Social Network 242
Setting the Initial Text 243
Adding Images 243
Adding URLs 243
Presenting SLComposeViewController 243
Exercise: A Selfie App 244
10. Running on a Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Certificates 259
Identifiers 265
Devices 267
Profiles 267
11. Submitting to the App Store. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Agreements, Tax, and Banking 276
Create App Listing 277
Version Information 278
Keywords 279
Support URL 280
Description 280
Screenshots 281
General App Information 282
Tips 283
App Icon 284
Category 284
Rating 284
Trade Representative Contact Information 284
Copyright 285
App Review Information 285
Version Release 286
Languages 286
Pricing 287
Uploading Your Binary 288
The Build Section 289
Ready for Submit 290
Statuses 291
App Review 292
App Rejection 293
App Approval 293
12. Managing and Marketing Your App. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Tracking Sales and Downloads 295
Payments and Financial Reports 295
Crashes 296
Reviews 296
Updating Your App 297
App Updates and MetaData Changes 297
Promo Codes 297
Analytics 297
Vanity URLs 298
One More Thing 298
A. Objective-C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
B. List of Synonyms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Learn cocos2D Game Development with iOS 5
Learn cocos2D Game Development with iOS 5
نویسنده: Steffen Itterheim, Andreas Löw
زبان: انگلیسی