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 8118529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:31:08+00:00 2026-06-06T04:31:08+00:00

I currently have an iPhone project with a tab bar. On the tabbar there

  • 0

I currently have an iPhone project with a tab bar. On the tabbar there are two views. Both of the views load or save data to a Core Data database (Both of these view initiate a method that collects data from a webservice and saves it in a database). When the view is loaded, it loads data from the database that populates a table in the view. If I run the app and click on the second view in the tabbar, the first view is still loading data from a webservice and inserting it into a database on a seperate thread. This is fine but once the first view has finished loading all the data into the database from the webservice, it freezes both view controllers ONLY if the second view controller is loading data from the database.

There is no error to the console and no indication by xcode that there is any error. All my processes work on different threads so there is not issue with the main thread freezing. The pulling data from a webservice and saving it to the database is a method and at the end of the method I have put NSLog(@"View Controller 1 Save Complete"). As soon as this is called AND the second view controller is still loading data, it freezes. The entire app is unresponsive (Nothing works).

I have looked through info on other SO questions and it recommended that I declare a new NSManagedObjectContext every fetch or insert and I have done that but it has not solved the problem.

If anyone knows what is happening or you want to know some more info, please let me know.

EDIT:
I am using Xcode 4.5 and IOS 6 simulator. This is the beta verion of the new IOS that was released a week ago. I know that this is not the error though as I had this problem before I started using the beta versions.

  • 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-06-06T04:31:09+00:00Added an answer on June 6, 2026 at 4:31 am

    A possibility that I have run into in the past, is trying to interact with an MOC on a thread which is different than the one it was created on. This kind of thing can happen if you are trying to do concurrency, and you must be very careful to know which thread you are on at all times when talking to an MOC. For example, with asynchronous things, your callbacks might be executing on a different thread than you think (i.e. viewDidLoad happens on the main thread, so if you are creating an MOC there, you cannot use it from a different thread later).

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

Sidebar

Related Questions

I currently have an iPhone application with a tabbar and multiple viewcontrollers. All the
Currently in my iPhone application I have about 200 image views, and I will
I have an iPhone project which currently does not have a UINavigationController in it.
I am currently working on an iPhone project in which all labels/text views etc.
Currently I am working on Calendar Application for iPhone. In this project i have
I have an iPhone Xcode project that currently only contains images for retina display
I currently have an iPhone app that lets the users take video, upload it
I'm currently developing a doodle-jump style game in Cocos2d for iPhone and have a
I'm currently developing an iPhone application, and when it comes to compiling, I have
I have an existing iPhone project that has been tested, submitted, and approved, compiled

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.