Muutke küpsiste eelistusi

Objective-C and iOS Programming: A Simplified Approach To Developing Apps for the Apple iPhone & iPad New edition [Pehme köide]

(The College of St. Scholastica)
  • Formaat: Paperback / softback, 524 pages, kõrgus x laius x paksus: 232x189x20 mm, kaal: 796 g
  • Ilmumisaeg: 28-Jan-2014
  • Kirjastus: Course Technology Inc
  • ISBN-10: 1285187059
  • ISBN-13: 9781285187051
  • Pehme köide
  • Hind: 56,23 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 70,29 €
  • Säästad 20%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 2-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 524 pages, kõrgus x laius x paksus: 232x189x20 mm, kaal: 796 g
  • Ilmumisaeg: 28-Jan-2014
  • Kirjastus: Course Technology Inc
  • ISBN-10: 1285187059
  • ISBN-13: 9781285187051
This timely and innovative new text meets the need for a concise, one-semester book that provides a thorough introduction to iOS and Objective-C programming and their practical application in developing iPhone apps. The unique nature of the text highlights and clarifies potentially challenging concepts by providing abundant examples, end-of-chapter summaries, programming problems of varying complexity, and a full hands-on project/lab together with its solution. The book facilitates not only iOS and Objective-C programming but also actual app development in one semester by focusing only on the topics required to develop basic apps.
Preface xii
Chapter 1 Launching and Getting Started 1(14)
Introduction to iOS
2(1)
Registering as a Developer
3(1)
Registering as an Apple Developer
3(1)
Registering as an iOS Developer
3(1)
An Introduction to Xcode and the IOS SDK
4(1)
Creating and Running a Project in Xcode
5(5)
Getting to Know the Debugger
10(2)
Summary
12(1)
Exercises
12(3)
Chapter 2 Data Types and Arithmetic Expressions 15(34)
Variables and Constants
16(1)
NSLog and Scanf
16(8)
Basic Data Types
18(3)
Derived Data Types
21(3)
Enum
24(2)
Preprocessor: # define statement
26(1)
Arithmetic Expressions
26(8)
Basic
26(2)
Modulus Operator
28(2)
Compound Assignment Operators
30(4)
Hands-On Lab
34(7)
Variable Declarations and initializations
34(1)
Implementation of Basic Data Types
34(1)
Implementation of Derived Data Types
35(1)
Addition
36(1)
Subtraction
36(1)
Multiplication
36(1)
Division
36(1)
Modulus
36(1)
Implementation Using Derived Data Types
37(1)
Implementation of Compound Operator
37(1)
Using an enum
38(1)
Source Code
38(2)
Results
40(1)
Summary
41(1)
Exercises
42(2)
Programming Exercises
44(3)
Business Case Study
47(2)
Chapter 3 Decisions and Conditions 49(28)
Relational Operators
50(1)
Assignment and Test for Equality Operator
51(1)
if Statement
51(1)
if - else Statement
51(3)
Nested if
54(2)
Logical Operators
56(2)
Switch
58(3)
Ternary operator
61(1)
Buffer Overflow with scanf When Reading a char
62(1)
Hands-On Lab
62(6)
Variable Declaration
63(1)
Variable Initialization
63(2)
Source Code
65(3)
Results
68(1)
Summary
68(1)
Exercises
69(3)
Programming Exercises
72(3)
Business Case Study
75(2)
Chapter 4 Looping 77(24)
Types of Loops
78(1)
Counter-Controlled for Loop
79(5)
break Statement
81(2)
continue Statement
83(1)
Condition-Controlled Loop
84(3)
while Loop
84(3)
do-while Loop
87(3)
Nested for Loop
90(3)
Hands-On Lab
93(3)
Variable Declarations
93(1)
Decisions
93(2)
Source Code
95(1)
Summary
96(1)
Exercises
96(2)
Programming Exercises
98(1)
Business Case Study
99(2)
Chapter 5 Functions 101(28)
An Introduction to Functions
102(1)
Prototype Declaration
103(4)
Return Type
107(1)
Passing Parameters
107(1)
Implementing Functions in an Existing Program
108(3)
Variable Scope
111(2)
Hands-On Lab
113(7)
Variable Declarations
113(1)
Change Dispenser
114(1)
Task Selection
115(1)
Deposit Function
115(1)
Withdrawal Function
116(1)
checkBalance Function
116(1)
getCoins Function
116(1)
Prototyping
117(1)
Source Code
117(2)
Sample output
119(1)
Summary
120(1)
Exercises
120(3)
Programming Exercises
123(4)
Business Case Study
127(2)
Chapter 6 Foundation Framework 129(30)
Message Invocation
130(2)
Introduction to the Foundation Framework
132(1)
Auto releasepool
133(1)
NSString
133(3)
NSArray
136(8)
Array Creation
136(1)
Create a Mutable Array from an Immutable Array
137(1)
Array Insertions and Additions
138(2)
Array Deletions
140(2)
Array Sorting
142(2)
NSDate
144(1)
NSDictionary
145(3)
Hands-On Lab
148(4)
Array Creation and Population
149(1)
Dictionary Creation and Population
149(1)
Variable Declarations
150(1)
Pay Calculation
150(1)
Use a for Loop to Print the Dictionary's Contents
151(1)
Source Code
151(1)
Sample output
152(1)
Summary
153(1)
Exercises
153(3)
Programming Exercises
156(2)
Business Case Study
158(1)
Chapter 7 Object-Oriented Programming 159(42)
Encapsulation, Objects, Instances, and Methods
160(1)
Instance and Class Methods
161(2)
Method Declaration
161(1)
Calling/Invoking Methods - Messaging
162(1)
Class Creation: @interface and @implementation
163(4)
Creating the @interface and @implementation Files
164(1)
Creating a Simple Dog Class
165(2)
Accessing Instance Variables
167(1)
Methods and Properties
168(2)
Initializers/Constructors
170(1)
Default init
170(1)
Custom init
171(1)
Using the description Method to Print an Object
172(1)
Complete Code for the Dog Class
173(3)
Inheritance
176(15)
First Tier of Inheritance: Inheritance from NSObject
177(3)
Second Tier of Inheritance: Inheriting from a Class
180(1)
Creation of Another Subclass at the Second Tier
181(1)
Third Tier of Inheritance
182(9)
Hands-On Lab
191(4)
Creating the @interface File
191(1)
Creating the @implementation File
192(1)
Creating the main Function
193(1)
Sample output
194(1)
Summary
195(1)
Exercises
196(2)
Programming Exercises
198(2)
Business Case Study
200(1)
Chapter 8 Working in the iOS Environment 201(34)
iOS Platform and Architecture
202(2)
Frameworks
202(1)
Role of Cocoa Touch and iOS layers
202(2)
iOS Software Development Kit (SDK)
204(3)
LLVM compiler
204(1)
Interface Builder
204(1)
iOS Simulator
205(1)
Instruments
206(1)
Development Support
207(1)
iOS App Life Cycle
207(1)
Views, View Controllers, IBOutlet Connections, and IBAction Connections
208(2)
Creating and Using IBOuti et and the IBAction Connections
210(1)
iOS App Creation Process
210(6)
UIControl Class
216(1)
UILabel Class
216(1)
UIButton Class
217(1)
UITextField Class
217(1)
Hands-On Lab
217(14)
Source Code
229(2)
Summary
231(1)
Exercises
232(1)
Programming Exercises
232(1)
Business Case Study
233(2)
Chapter 9 Understanding and Creating User Interfaces 235(46)
UIKit Framework
236(1)
Storyboards
236(18)
A Simple Transition Using Storyboards
238(9)
Storyboard Example with Navigation Bars
247(7)
Passing Data Between Views
254(12)
Hands-On Lab
266(10)
Project Creation
267(1)
Adding Controls to the View Controller
267(1)
GUI Programing
268(1)
Coding Gender Selection
269(1)
Coding the Reset Button
270(1)
Coding the Transition from View 1 to View 2
270(1)
Code to Hide Keyboard
271(5)
Summary
276(1)
Exercises
276(1)
Programming Exercises
277(2)
Business Case Study
279(2)
Chapter 10 Passing Data Between View Controllers, Delegates, and Protocols 281(36)
Role of View Controllers
282(1)
Presenting and Dismissing View Controllers
282(1)
Creating Transitions Without Storyboards
282(9)
View Controller Communication
290(1)
Delegates and Protocols
291(1)
Summary of Steps for Using Protocols and Delegates
292(2)
Coding for View 1
293(1)
Coding for View 2
294(1)
Using Delegates to Pass Data Between Views
294(9)
Implementing the Flow of Data
296(1)
Complete Code So Far
297(1)
Writing the viewDidLoad Method and Running the App
297(1)
Declaring the Protocol and Invoking the Protocol Method
298(2)
Complete Code
300(3)
Dismissing Keyboard
303(2)
Dismiss Keyboard from Within a Text Field
303(1)
Dismiss the Keyboard by Touching Anywhere on the Screen
304(1)
Hands-On Lab
305(8)
Create the Project
305(1)
Design the User Interface for View Controller 1
306(1)
Design the User Interface for View Controller 2
307(1)
Protocol and Delegate Implementation
308(1)
Coding the Computations
309(1)
Coding the Compute Button in SecondViewController
310(3)
Summary
313(1)
Exercises
314(1)
Programming Exercises
314(1)
Business Case Study
315(2)
Chapter 11 Table Views 317(40)
UITable View
318(2)
Delegate and Data Source
320(1)
Creating an App with a Table View
321(11)
Creating the Interface
322(2)
Programming the Table View
324(3)
Displaying Data in the Table View
327(1)
Adding a Data Source
328(2)
Code for the TableViewController.m Files
330(1)
Running the App
331(1)
Creating a Detail View
332(1)
Creating a Master-Detail Application Example
333(10)
Implementing the Master-Detail-Application Template
337(3)
MasterViewController.h file
340(1)
MasterViewController.m file
340(2)
Running the App
342(1)
Hands-On Lab
343(6)
Create a New Project and Design the Interface
345(1)
Add the View Controller Files
345(1)
Program the Interface
345(1)
Create IBOutlet and IBAction Connections
345(1)
Adding a Data Source
346(1)
Implement the IBAction Connection
346(1)
Program the Master View Controller to Display Data
347(1)
Transfer Data Between Views
348(1)
Source Code
349(4)
Summary
353(1)
Exercises
354(1)
Programming Exercises
355(1)
Business Case Study
356(1)
Chapter 12 Tab Bar View and Picker View Controls 357(40)
Tab Bar View
358(2)
Creating a Tab Bar App Using Storyboards
360(9)
Starting a Tab Bar App Example
360(5)
Adding an Image to a Tab
365(4)
Creating a Tab Bar Without Storyboards
369(5)
Tab Bar and Navigation View Controller Example
370(2)
Complete AppDelegate.m File
372(1)
Adding Images and Titles
373(1)
Complete ThirdViewController.m File
373(1)
Running the App
374(1)
Picker View
374(8)
Using a Delegate and a Data Source with a Picker View
375(1)
Creating an App with a Picker View
376(4)
Complete Files
380(2)
Hands-On Lab
382(11)
Adding an Image and Title to the Tabs
384(1)
Embedding a Navigation controller
385(1)
Table Setup
385(1)
Populating the Table View
386(1)
Creating the Interface
387(5)
Dismissing the Keyboard
392(1)
Summary
393(1)
Exercises
394(1)
Programming Exercises
395(1)
Business Case Study
396(1)
Chapter 13 Creating Multimedia Apps with Images and Sound 397(42)
Adding Images to an App
398(6)
Playing Audio
404(13)
Adding Audio to an App
405(1)
Creating an App that Plays Audio
405(1)
Add the AVFoundation Framework
406(3)
Add Music to the Project
409(1)
Create and Program the Play Button
409(1)
Prepare to Program the Play Button
410(1)
Program the Play Button
410(1)
Adding Volume Control to the App
411(2)
Adding a Progress Bar
413(1)
ViewController.h File
414(2)
Running the App
416(1)
Playing Video
417(5)
Adding Video to an App
417(1)
Creating an App that Plays Video
417(1)
Add MediaPlayer framework
418(1)
Create and Program a Play Button
419(1)
Program the Play Button
420(2)
Hands-On Lab
422(13)
Creating the Project
423(1)
Create a Third tab
423(1)
Adding Frameworks for Audio and Media
424(1)
Customize the Three Tabs
424(3)
Program the Second View Controller in the SecondViewController.h File
427(1)
Add Data to the Picker View
427(1)
SecondViewControlLer.h File
427(1)
Synthesize All the Properties
428(4)
Designing the Third View Controller
432(1)
Programming the Third View Controller in the ThirdViewController.h file
433(1)
Adding Data to the Picker View
433(1)
Programming the Third View Controller in the ThirdViewController.h File
433(2)
Summary
435(1)
Exercises
436(1)
Programming Exercises
437(1)
Business Case Study
438(1)
Chapter 14 Data Persistence 439(54)
Data Persistence Mechanisms
440(1)
NSUserDefaults Class
440(6)
Writing Data to a NSUserDefaul is Object
441(1)
Creating a NSUserDefaults Example App
441(5)
Property Lists
446(8)
Creating a Plist Example App
447(1)
Adding Items to a Property List
448(1)
Designing the Interface
449(5)
Archiving
454(5)
Creating an Archiving Example App
454(5)
SQLite
459(9)
Creating a SQLite Example
459(9)
Hands-On Lab
468(20)
Design the User Interface
470(4)
Add the SQLite Database Library
474(1)
Programming the MainViewController.h file
474(1)
Program the MainViewController.m file
475(5)
Writing the Code for the FlipsideViewController.h File
480(1)
Writing the Code for the FlipsideViewController.m File
481(2)
Writing the viewDidLoad Method
483(5)
Running the Completed App
488(1)
Summary
488(1)
Exercises
489(1)
Programming Exercises
490(1)
Business Case Study
491(2)
Appendix A Xcode Debugger 493(8)
Index 501
Arshia Khan is an Associate Professor at The College of St. Scholastica in Duluth MN. She has earned a Bachelor of Engineering in Computer Engineering, an M.S. in Computer Science, and a Ph.D. in Information Technology. Her current research interests include quality of healthcare, leading-edge teaching techniques, healthcare mobile app development, and innovative healthcare technology development. Her passions are teaching, research, and inspiring her undergraduate students to pursue their research interests in graduate school.