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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:04:20+00:00 2026-05-27T17:04:20+00:00

Houston, I have a problem, which I am working on for 5 days and

  • 0

Houston, I have a problem, which I am working on for 5 days and cant fix it: So, I am working on an app which has tabBarController. On the first tab, there is a tableViewController with some objects in it. And when I press a cell, I turn to form with a button in it. And when I press this button, it saves the title of navigationBar which is on the top (so, it saves a title of cell which you pressed). Then, when I turn to another (second) tab, we can see a view with tableView in it. And what I expecting to see in a cell is that title of navBar(or cell) from the first tab. BUT instead, I see in this tableView ALL the objects from the first tableView, but not that one I saved.

Here is my code: https://gist.github.com/1501328

So again: First tab has a tableViewController. When I press a random cell, I move to another view with button on it. When I press the button I save the title of navBar, so its the same as cell name which I tapped. And when I move to second tab, I can see a view with tableview in it and I want to see a saved title in a cell but I see ALL the Objects from the first tab tableView.

I despair, please, help me stackoverflow community ! ! !

  • 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-27T17:04:20+00:00Added an answer on May 27, 2026 at 5:04 pm

    The reason why you got the same content in the two table views is most probably because they share the same dataSource.

    If the same object is meant to be the dataSource of two (or more) table views, then you must make the difference in delegate and datasource methods (using the tableView parameter).
    Check if the title information is stored at the right place, and then double check delegate and datasource methods and ensure they make the difference between the table views when returning number of rows and cells.

    If not, then set the appropriate delegate and dataSource for the table views that displays wrong values.

    When looking at the code, only Favorites is conforming to delegate and datasource protocols, is this object the delegate and datasource for both tables ? Nothing in these methods take care of the difference…

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

Sidebar

Related Questions

I was working on an intranet application which has been working on quirks mode
I have strings that are formatted as below: Houston, TX - str1 Chicago, IL
For eg. I have the following array setup that has each major US city
I seem to have stumbled over a problem regarding saving an xml file from
I have been working on getting $.ajax data compiled by using an php class
I have a windows phone 7.1 app that tries to get data from a
I have the following function in JavaScript every part of the if statement executes
I have a database table, with people identified by a name, a job and
I have a form, and I have some jquery code to override the submit
I have to search a list of strings in CityList and if it contains

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.