Detailstext in TableView from Coredata Iphone

Posted by user554867 on Stack Overflow See other posts from Stack Overflow or by user554867
Published on 2010-12-27T12:48:23Z Indexed on 2010/12/27 12:54 UTC
Read the original article Hit count: 162

Hey,

that is my first question here at stackoverflow. Let me try to be specific as I can.

The project is as follows: I am trying to parse an xml file in an iphone app, which works already. I am saving the parsed data into the CoreData of the Iphone.

So far so good:

I have two elements of the xml file which I want to show in the tableview as the text and the detailtext. Now the strange behaviour occurs:

If I take the data of the Core Data and trying to visualize them in the tableview, then both elements are displayed in seperate cells and not as detailtext of the element.

If I am just taking a constant string for the detailtext, then it works, but if I am trying to take for every cell a specific element from the Core Data then it is shown seperately in the tableview.

I googled a lot, reading here and there. I dont know which code I should show because I dont have a clue where exactly the mistake could be.

Maybe someone can answer that immediately because it is a stupid mistake somewhere, which is common.

Thanks for your help.

© Stack Overflow or respective owner

Related posts about uitableview

Related posts about core-data