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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:37:28+00:00 2026-05-14T02:37:28+00:00

I am new to Iphone apps and I am trying to build a tab

  • 0

I am new to Iphone apps and I am trying to build a tab based app. I am attempting to have a table ontop of an image in both tabs. On tab with a table of audio links and the other tab with a table of video links.

This has all gone swimmingly, I have created two viewControllers for the two tables. All the code works great apart from to get it to work I have to comment out the super dealloc in the – (void)dealloc {} in the videoTableViewController for the second tab.

If I don’t I get the error message:

FREED(id): message numberOfSectionsInTableView: sent to freed object

please help, i have no idea why it is doing this…

  • 1 1 Answer
  • 1 View
  • 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-14T02:37:29+00:00Added an answer on May 14, 2026 at 2:37 am

    UITableViewController handles memory management for its own tableView object, so you theoretically don’t have to worry about it.

    As Alex said, it’s definitely bad to not call [super dealloc]; it is a memory leak to leave that out.

    To solve this, you need to figure out why your table view is living longer than your view controller (that’s what’s giving you that FREED(id) error). One guess is that you’re leaving the view in the view hierarchy but releasing the controller. The desired behavior when you’re moving away from one view controller to another is to remove the old view from the view hierarchy by calling [oldView removeFromSuperview] and then releasing the view controller, if you want to release it at all. The reason removeFromSuperview is important is that superviews always retain their subviews, so this could be why your tableView is so undead.

    If your app is not memory intensive, it may be easiest to simply keep your view controllers allocated (not release them) — that would solve your problem, although it is not really addressing the issue that your table view is living longer than expected, which may be a symptom of some inefficient code that would be nice to clean up.

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

Sidebar

Related Questions

I am new to using the SQLite database in iphone apps. I have created
I have a new iPhone app that has the following (and only the following)
I am new to iPhone apps development. I am trying to develop a small
I am pretty new in Iphone Apps. How do I upload Image/Photo from my
I have two apps in the app store, both through MonoTouch but after upgrading
I am new to MonoTouch iPhone apps, when i am trying to run Social
Hi, Iam new to iPhone apps. I have a problem with tableview. Here I
I am new to building iphone apps. Have been searching the net on how
hi i have made iPhone apps before but im new to hybrid apps just
I am new to iphone app development, and I am trying to upload images

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.