Topic: Mobile

Beginning iOS Programming: Building and Deploying iOS Applications (1118841476) cover image

Beginning iOS Programming: Building and Deploying iOS Applications

Nick Harris
ISBN: 978-1-118-84147-1
Paperback
336 pages
February 2014
Other Available Formats: Wiley E-Text
If you are an instructor, you may request an evaluation copy for this title.
Paperback Version: US $39.99 Add to Cart

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
4 82-3 Text correction: Errors in code under "Adding a UITextField"
The sixth line of code under step 9:
self.bandObject = [[BandObject alloc] init];

should read:
self.bandObject = [[WBABand alloc] init];

The last lines of code under step 10 on page 83:
{
   self.bandObject.name = self.nameTextField.text;
   [self saveBandObject];
   [self.nameTextField resignFirstResponder];
   return YES;
}


should read:

{
   self.bandObject.name = self.nameTextField.text;
   [self.nameTextField resignFirstResponder];
   return YES;
}
4/18/14
10 97 Text correction: Error in code under "Retrieving Data from NSUserDefaults"
Step 3, first line of code at top of page:

self.bandObject = [[BandObject alloc] init];

should read:

self.bandObject = [[WBABand alloc] init];
4/18/14
9 215 Text Correction: Error in Code
At top of page, 6th line of code:
Currently reads:
WebViewController *webViewController = (WebViewController *)segue.destinationViewController;
Should read:
WBAWebViewController *webViewController = (WBAWebViewController *)segue.destinationViewController;
06/26/14
10 225 Text Correction: Error in Code
Step 17, line 4 of code.
Currently reads:
#import ?WebViewController.h?
Should read:
#import ?WBAWebViewController.h?
06/26/14
10 226 Text Correction: Error in Code
At the beginning text for step 20.
Currently reads:
"20. Modify the prepareForSegue:sender: method with the following code:
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if([segue.destinationViewController class] == [WebViewController class])
{
WebViewController *webViewController =
segue.destinationViewController;
webViewController.bandName = self.bandObject.name;
}
"
Should read(bold denotes the fixed text):
"20. Modify the prepareForSegue:sender: method with the following code:
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if([segue.destinationViewController class] == [WBAWebViewController class])
{
WBAWebViewController *webViewController =
segue.destinationViewController;
webViewController.bandName = self.bandObject.name;
}
"
06/26/14
11 261 Text Correction: Error in Code
The first line near bottom of page, under "Try It Out" Step 1:
Currently reads:
1. From the Xcode menu select File > New > File, and create a new subclass of the WBAMapViewController called WBAMapViewController_iPad
2. Select the WBAMapViewController_iPad.h file from the Project Navigator.
Should Read:
1. From the Xcode menu select File > New > File, and create a new subclass of the WBAMapSearchViewController called WBAMapSearchViewController_iPad
2. Select the WBAMapSearchViewController_iPad.h file from the Project Navigator.
06/27/14
262 Text Correction: Error in Code
Step 9
Currently Reads:
1. From the Xcode menu select File > New > File, and create a new subclass of the WBAMapViewController called WBAMapViewController_iPad
2. Select the WBAMapViewController_iPad.h file from the Project Navigator.
Should Read:
1. From the Xcode menu select File > New > File, and create a new subclass of the WBAMapSearchViewController called WBAMapSearchViewController_iPad
2. Select the WBAMapSearchViewController_iPad.h file from the Project Navigator.
11 262 Text Correction: Error in Code
Page 262, try it out, step 5
Currently Reads:
5. Select the WBAMapViewController_iPad.m file
Should Read:
5. Select the WBAMapSearchViewController_iPad.m file
08/22/14
11 262 Text Correction: Error in Code
Page 262, try it out, step 9
Currently Reads:
9. Drag a new View Controller onto the storyboard, and set its class to the WBAMapViewController_iPad class
Should Read:
9. Drag a new View Controller onto the storyboard, and set its class to the WBAMapSearchViewController_iPad class
08/22/14
11 262 Text Correction: Error in Code
Page 262, try it out, step 13
Currently Reads:
13. Connect the IBOutlets, IBActions, and delegates to the WBAMapViewController_iPad class.
Should Read:
13. Connect the IBOutlets, IBActions, and delegates to the WBAMapSearchViewController_iPad class
08/22/14
11 264 Text Correction: Error in Code
Step 12, line 3 of code.
Currently reads:
if([segue.destinationViewController class] ==
[WebViewController_iPad class])
{
WebViewController_iPad *webViewController =
segue.destinationViewController;

Should read:
if([segue.destinationViewController class] ==
[WBAWebViewController_iPad class])
{
WBAWebViewController_iPad *webViewController =
segue.destinationViewController;

06/26/14
12 Text Correction
Line 5:
CURRENTLY READS:
CardinalDirection windDirection = CardinalDirectionNorth;
SHOULD READ:
CardinalDirection windDirection = NORTH;
10/02/14