O'Reilly Forums: Ch5: Adding The Drink Detail Plist Caused The List To Disappear! - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ch5: Adding The Drink Detail Plist Caused The List To Disappear! Something caused my Cocktails names to disappear, dunno why.

#1 User is offline   WilliamLam 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 17-March 11

  Posted 17 March 2011 - 11:16 PM

Hi folks I have a problem,

DL'd the DrinksDirections plist and followed the guide changing the code as prescribed in the book.

When told to compile and run the app... The detailed view does show up with the drinks' ingredients & directions.

But the previous view (that shows the cocktails' names) are all blank!

Has anyone ever encountered this?

Compiler shows no errors so I've no idea what I've missed..

Please help,

Thanks

Will
0

#2 User is offline   xxkayoticxx 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 18-March 11

Posted 18 March 2011 - 10:34 AM

I'm having the same issue.

After I loaded up the DrinksDirections, the Drink's names completely disappeared from the first view.

What's strange is I can still click the blank area the name used to be in, and it'll take me to the directions just fine. It still functions normally, I just can't see the name at all.

I've continued a little further into the tutorial with this oddity, and so far all is still well. I'd like to get this bug fixed before I move too far further though.

After going through some posts here, someone mentioned it might be some info in the debugging stage I'm missing. I only half-read that section, so I'm going to double check now and see if anything was overlooked.

I'll post if I come across a cure.
0

#3 User is offline   xxkayoticxx 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 18-March 11

Posted 18 March 2011 - 06:33 PM

Figured out my issue!
Not sure if yours is the same,but in my RootViewController.M I had

// Configure the cell.
cell.textLabel.text = [[self.drinks objectAtIndex:indexPath.row] objectForKey @"NAME_KEY"];

but it's supposed to be

// Configure the cell.
cell.textLabel.text = [[self.drinks objectAtIndex:indexPath.row] objectForKey:NAME_KEY];



Hope this helped!



0

#4 User is offline   WilliamLam 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 17-March 11

Posted 20 March 2011 - 06:47 PM

QUOTE (xxkayoticxx @ Mar 18 2011, 06:33 PM) <{POST_SNAPBACK}>
Figured out my issue!
Not sure if yours is the same,but in my RootViewController.M I had

// Configure the cell.
cell.textLabel.text = [[self.drinks objectAtIndex:indexPath.row] objectForKey @"NAME_KEY"];

but it's supposed to be

// Configure the cell.
cell.textLabel.text = [[self.drinks objectAtIndex:indexPath.row] objectForKey:NAME_KEY];



Hope this helped!


Wow! Thank you xxkayoticxx, you are a genius. Solved the problem. Thanks again!
0

#5 User is offline   Manendra 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 26-October 12

Posted 26 October 2012 - 05:53 AM

Bill's post to change in the source code works. :)
0

#6 User is offline   expertsfromindia 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 27-December 12

Posted 28 December 2012 - 05:26 AM

I am getting the same issue and looking for the solution.. Please help me out!!
[url="http://www.expertsfromindia.com/hire_ipad_application_developer_programmer.htm"]iPad Programmers[/url] | [url="http://www.expertsfromindia.com/hire_ipad_application_developer_programmer.htm"]iPad Development[/url]
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users