Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 24th, 2013, 01:02 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #2 (permalink)  
Old November 25th, 2013, 09:36 AM
Friend of Wrox
Points: 1,671, Level: 16
Points: 1,671, Level: 16 Points: 1,671, Level: 16 Points: 1,671, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #3 (permalink)  
Old November 25th, 2013, 10:13 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 10:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.