View Single Post
  #3 (permalink)  
Old May 10th, 2011, 10:12 PM
tecky10 tecky10 is offline
Authorized User
 
Join Date: May 2011
Posts: 19
Thanks: 9
Thanked 0 Times in 0 Posts
Default Figured out the problem...here is the fix

I figured out the problem and thought I'd post it here in case someone else has the same issue.

The problem was that on pg. 71, the code sample didn't include the following, but it was in the original code [from earlier chapter(s)]. Once the following items were commented out, the extra text went away...

ITEMS TO COMMENT OUT...

cell.textLabel.text = product.name;
cell.detailTextLabel.text = product.manufacturer;
NSString *filePath = [[NSBundle mainBundle] pathForResource:product.image ofType:@"png"];
UIImage *image = [UIImage imageWithContentsOfFile:filePath];
cell.imageView.image=image;

Hope this might help someone.