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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:52:12+00:00 2026-05-14T14:52:12+00:00

I have been working on an iPhone project, where we created all the user

  • 0

I have been working on an iPhone project, where we created all the user interface programmatically in code. Now I’m going to start a new iPhone project and thinking of using Interface Builder instead, because it has been recommended to me as being a very useful tool, creating less headache than writing everything in code and in general much faster (regarding development time).

However, my team members have some concerns due to previous problems with using Interface Builder and resulting memory leaks. Therefor they suggest building everything in code again. I don’t know where these concerns come from, but maybe someone with more experience than we have can give some insight on that topic.

Doing a simple Google search doesn’t really provide any information proofing that there are any problems with memory leaks created by the Interface Builder itself.

By looking at the official documentation from Apple I only see these three things which I have to take care of:

@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];
}

Anything I missed?

  • 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-14T14:52:13+00:00Added an answer on May 14, 2026 at 2:52 pm

    When you assign an IBOutlet via Interface Builder, that object is retained by the controller by default (even without explicitly setting a property with retain). Therefore, you need to either release all outlets, or set a property with assign.

    This is a gotcha that gets most people, and leads to the most common of memory leaks. Especially on views that are repeatedly show and removed.

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

Sidebar

Related Questions

I've been working a lot with Photoshop .psd files recently and have been bouncing
Been working on this for hours now so any insight would be greatly appreciated.
I've been working on an iPad application that has about 15 view controllers. Some
I am working on a site specific to the iphone community. Having read few
Here's the deal, I had this app working since iPhone OS 3.0 came out,
I'm working up a graphics effect for an iPhone app that simulates a low-res
I have done what this question said here: Landscape Mode ONLY for iPhone or
I have a simple entity called Store built in Xcode's data modeler for use
I can get individual frames from the iPhone's cameras just fine. what I need
Bug reported as fixed by Apple, see accepted answer below ... UPDATE MON AUG

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.