Wrox Programmer Forums
|
BOOK: Professional iOS Database Application Programming, 2nd Edition
This is the forum to discuss the Wrox book Professional iOS Database Application Programming, 2nd Edition by Patrick Alessi; ISBN: 978-1-118-39184-6-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iOS Database Application Programming, 2nd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 24th, 2013, 02:02 PM
Registered User
 
Join Date: Nov 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Xcode Version 5.0.2 (5A3005)

Hi,

I am using the above version of xcode. I was able to run the first sample application with minor changes to this method:

Code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
    
    NSUInteger row = [indexPath row];
    cell.textLabel.text = [model getNameAtIndex:row];
    return cell;
}
Please confirm that its alright to go through this book using this version of xcode? And that the best practices & strategies written here are still applicable?

Thank you very much
 
Old November 25th, 2013, 10:36 AM
Friend of Wrox
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

There should be no reason to have changed the method. The code from the book works fine. You might want to recheck what you did. What error did you receive that required you to amend the method?

The programming practice and style in the book are excellent. There will be minor differences between the book's description of certain things regarding Xcode dialogues, but most things will be fine. By default Xcode sets up storyboards, not .xib files, but if you wish to use .xib files, storyboards can be replaced with .xibs.

Bob
 
Old November 25th, 2013, 11:13 AM
Registered User
 
Join Date: Nov 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Bob,

Code above works fine. I did not received any error but the first tutorial I followed used:

Code:
dequeueReusableCellWithIdentifier:forIndexPath:
instead of just

Code:
dequeueReusableCellWithIdentifier
the former being able to return new cell if none is available.

I am a notch above noob level and I worry that the differences in xcode or IOS version might confuse me.

I will proceed with the book then.

Thank you





Similar Threads
Thread Thread Starter Forum Replies Last Post
xcode 4? kingfingerjr BOOK: Beginning iOS Game Development 2 August 22nd, 2013 07:58 AM
I've got this book already (paper version), what's new in the new version? (v4) lpinho BOOK: Professional Android 2 Application Development 0 July 28th, 2013 05:32 PM
A different version of XCode Andykay Xcode 0 April 13th, 2012 09:32 PM
Chapter 1 and Xcode 4.2 diggerbyte BOOK: Professional iPhone and iPad Database Application Programming 0 March 17th, 2012 10:35 PM
Chapter 2: Xcode cannot find the software image to install this version. thunderous BOOK: Beginning iOS 4 Application Development 3 July 2nd, 2011 11:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.