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

  • Home
  • SEARCH
  • 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 758425
In Process

The Archive Base Latest Questions

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

The official documentation tells me I’ve to do these 3 things in order to

  • 0

The official documentation tells me I’ve to do these 3 things in order to manage the my memory for “nib objects” correctly.

@property (nonatomic, retain) IBOutlet UIUserInterfaceElementClass *anOutlet;

“You should then either synthesize the corresponding accessor methods, or implement them according to the declaration, and (in iPhone OS) release the corresponding variable in dealloc.”

- (void)viewDidUnload {
    self.anOutlet = nil;
    [super viewDidUnload];
}

That makes sense for a normal view. However, how am I gonna do that for a UITableView with custom UITableViewCells loaded through a .nib-file?

There the IBOutlets are in MyCustomCell.h (inherited from UITableViewCell), but that is not the place where I load the nib and apply it to the cell instances, because that happens in MyTableView.m

So do I still release the IBOutlets in the dealloc of MyCustomCell.m or do I have to do something in MyTableView.m?

Also MyCustomCell.m doesn’t have a - (void)viewDidUnload {} where I can set my IBOutlets to nil, while my MyTableView.m does.

  • 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-14T15:28:41+00:00Added an answer on May 14, 2026 at 3:28 pm

    Are your IBOutlets properties of the cell? If so then release them in MyCustomCell’s dealloc method.

    Make sure that you are following the guidelines for tableViews and calling dequeueReusableCellWithIdentifier: in tableview:cellForRowAtIndex. The tableView will release your custom cells when it no longer needs them. Assuming that you do not have any other references to your cells (you shouldn’t) then dealloc will be called for the cell dequeued by the tableView.

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

Sidebar

Related Questions

Official appengine documentation says that if we set threadsafe property to true in app.yaml
I read in Sun official documentation (or Sun online tutorial) about dotted naming for
Is there official documentation on the Python website somewhere, on how to install and
I have looked in the official documentation for python, but i cannot seem to
I couldn't find any official documentation about extending Kendo UI widgets or making composite
After running into the Yii asset engine I've read the official documentation (http://www.yiiframework.com/wiki/148/understanding-assets/). I
Does anyone have examples/tutorials of exception handling in R? The official documentation is very
Here is a snippet of the official Apple Documentation of AudioBufferList (Core Audio Data
At the official documentation there is an article of how to create custom dialogs
The official documentation says they are optional. I know COM interop requires a unique

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.