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 02-14-2010, 03:02 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: I'm a Brit-pat.
Posts: 171
Default Core Data inserting value from second view controller

Hi all,

I think my problem has a simple solution, though I cannot seem to find it right now.

I've used the UiTableViewController and Core Data. When the add button is pushed, it pushes a new view controller onto the navigationController. When I come out, I want to call the InsertNewObject function to add the data.

How do I call that function when I return to that screen?

Cheers,

Jase
coulls is offline   Reply With Quote
Old 02-16-2010, 10:36 AM   #2 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: I'm a Brit-pat.
Posts: 171
Default

Just wondering - Would it be that I have to raise an event on the parent view from the pushed view?
coulls is offline   Reply With Quote
Old 10-19-2010, 05:39 PM   #3 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 50
Default

Hello -
ever find any solution to this? I am using navigation based template with core data. Has the UITableViewController and then when the add button is pushed a UIViewController is pushed on. On this new view I have a textField and datePicker.

When returning to the RootView (tableView) I want to call the insertNewObject method, but receive an error about not being able to locate the object model.

Would love some guidance, at my wits end.

If I add entities prior to going to the new view its fine, but some how by going to the new view and then back the info is lost that is needed to update the data.
tiltem is offline   Reply With Quote
Old 11-15-2010, 02:47 PM   #4 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 3
Default

Hi,
did anyone find solytion to this problem??
I am too stuck at the same problem.. when i edit the data in the new view contoller and go back to previous controller, then the data is not saved.
Please let me know if you have found out a solution.

Thanks
Quote:
Originally Posted by tiltem View Post
Hello -
ever find any solution to this? I am using navigation based template with core data. Has the UITableViewController and then when the add button is pushed a UIViewController is pushed on. On this new view I have a textField and datePicker.

When returning to the RootView (tableView) I want to call the insertNewObject method, but receive an error about not being able to locate the object model.

Would love some guidance, at my wits end.

If I add entities prior to going to the new view its fine, but some how by going to the new view and then back the info is lost that is needed to update the data.
newdesicoder is offline   Reply With Quote
Old 01-10-2011, 11:59 AM   #5 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 1
Default

I realize this is a fairly old post, but just to answer. Rather than using a new view controller, it's much easier to create a second view in the RootViewControler.xib and animate that view to come up when you press the add button.
JamesContador is offline   Reply With Quote
Reply

Bookmarks

Tags
core data, uitableview

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: 241
12 members and 229 guests
ADY, AragornSG, CKAmike, Dani77, Duncan C, HemiMG, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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