p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional iOS Database Application Programming, 2nd Edition (http://p2p.wrox.com/forumdisplay.php?f=743)
-   -   Xcode Version 5.0.2 (5A3005) (http://p2p.wrox.com/showthread.php?t=91545)

richard-155 November 24th, 2013 02:02 PM

Xcode Version 5.0.2 (5A3005)

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


- (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

thepianoguy November 25th, 2013 10:36 AM

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.


richard-155 November 25th, 2013 11:13 AM

Hi Bob,

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


instead of just


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

All times are GMT -4. The time now is 11:48 AM.

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