Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-11-2008, 05:24 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2008
Location: Munich, Germany
Posts: 108
Default NSMutableDictionary Problem

Hi I have a problem.
In my app I start off with a tableview (DetailViewController). When I switch into edit mode I can add, delete and edit the contents of a cell in my EditingViewController. The contents (a title and some text) of my cell are saved to editingItem (NSMutableDictionary). That all works fine.



Now I click on a cell in my tableView and a new view slides in (ContentViewController). I want the contents of my clicked cell to be diplayed in the ContentViewController as shown below.



But it isnt workling. My Label (Name) and my textView (Text) dont show me anything. Its all just blank. And I cant figure out why.
I would be very greatful if somebody could help me out here!
Thanks!

Addition:

My Cells in my tableView show my the contents (Name and Text) perfectly. I Have three lines in each cell. The first one displays me the name and the other two the first two lines of my text. But when I open another view (ContentViewController) by clicking on a cell I want the new view to show me the name in a Label and all of the text in a textView.
The viewDidLoad belongs to my ContentViewController. So it is calling after the contents of the cell have been saved.

Addition:

Ok, I found out my editingItem is empty when ContentViewController is loaded. So now we have the reason why my view isn't showing me any text.
But I dont understand why it is empty. It works perfectly in the DetailViewController and EditingViewController. All my text there is diplayed perfectly.
freshking is offline   Reply With Quote
Reply

Bookmarks

Tags
nsmutabledictionary, problem, viewcontroller

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 268
20 members and 248 guests
@sandris, AdamL, ADY, Dani77, diyora, FAED, F_Bryant, GHuebner, HDshot, headkaze, mer10, Oral B, prchn4christ, Rudy, smithdale87, Thompson22, timle8n1, Touchmint, twerner, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,749
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:57 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0