Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7162167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:41:26+00:00 2026-05-28T13:41:26+00:00

I am learning to develop iPhone applications using iOS 5. I am trying to

  • 0

I am learning to develop iPhone applications using iOS 5.

I am trying to create a contact list of sorts (to learn about Core Data).

I have a UITableView embedded in a UINavigationController (I have done this through Editor -> Embed In -> Navigation Controller).

At the end of my saveContact action I have the line:

[self.navigationController popViewControllerAnimated:YES];

To move from the contact creation form to the UITableView which lists all the contacts. The code that fetches the contacts is in viewWillAppear.

Problem is that when I pop the contact creation form the new contact does not show on the list.

I have found in Apple’s documentation that I should add the UINavigationControllerDelegate to my UITableViewController, but no success.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:41:26+00:00Added an answer on May 28, 2026 at 1:41 pm

    You need to implement the navigationController:willShowViewController:animated: method of the UINavigationController protocol in your UITableViewController and set the delegate of the navigation controller the table view controller. In you implementation of the method, check if the view that will be shown is equal to your view, and if it is then fetch the results.

    If you really want to integrate Core Data with a table view, I would recommend looking into NSFetchedResultsController. It simplifies handling updates to the backing data store, so if you later added background syncing functionality, the background thread could continuously update the store, and the NSFetchedResultsController could then handle updating the table for you. It would also make your current example easier, as all you’d have to do is send save: to Core Data and then the results controller would start updating your table, without using a viewWillAppear: method

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing several iPhone applications using UIKit. I want to learn and develop
I am learning how to develop web applications using php. I am trying to
I am learning how to develop iPhone applications and I ran into an interesting
I'm learning to develop for iPhone (programmatically, I don't like IB). I only use
I'm currently learning to develop for the .net compact framework using c# in VS2008
I've been learning to develop applications on the cocoa touch platform. I've come a
Duplicate : https://stackoverflow.com/questions/135651/learning-unit-testing I'm trying to develop some software for my research group to
(Just so you know I am learning to develop for iphone, without interfacae builder)
I'm learning to develop for iPhone without Interface Builder (a personal preference), and I'm
(Just to let you now, I'm learning to develop for iPhone with a book

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.