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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:07:59+00:00 2026-06-04T00:07:59+00:00

I have an iOS (Obj-C) project that uses ARC (Automatic Reference Counting). According to

  • 0

I have an iOS (Obj-C) project that uses ARC (Automatic Reference Counting). According to Apple Documentation, and pure experimentation, you cannot have statements such as:

[UIThingamabob release];

This was previously the way to release items after being allocated or retained. Now I do know that you have to manage how IB objects are created in the

@property (nonatomic, retain) IBOutlet ...

portion of your header file.

I’ve been using the above statement as it is (with the nonatomic and retain (or strong- what’s the difference anyway, how are they used?) properties) for all of my IB items. When I test on an iOS Device, I’ll randomly get a UIAlertView (that I created for debugging purposes) that only displays when the didRecieveMemoryWarning event is fired.

Some of my BETA testers are bombarded with these views nonstop until they manage to quit the app.

My question is, what do I put in the didRecieveMemoryWarning event since I can’t release objects? If there isn’t anything to put there, then are these errors occurring due to the way I create my objects with the @property function?

  • 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-04T00:08:01+00:00Added an answer on June 4, 2026 at 12:08 am

    You should use @property (nonatomic, weak) IBOutlet... for all of your IBOutlets. If you use strong, the outlet is retained by the view controller and by it’s superview. When the view disappears, the view controller still has a reference to that outlet which is no longer visible. You could set the outlet property to nil in -viewDidUnload or by using weak setting the pointer to nil is done automatically when the view disappears.

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

Sidebar

Related Questions

The project is for iOS 5.0. I have set the automatic reference counting, anyhow
Just getting started with Obj-C and iOS programming. I have some code that loads
i have an iOS application witch uses the current location of the user. I
I have an IOS application which uses environment variables and am able to set
Overview I have an iOS project which contains 2 navigation controllers as shown in
I've reviewed many websites and youtube videos that have IOS 5 storyboarding information. Most
I have an iOS app in the Apple App Store. For the next big
I am working on a project for iPhone in Obj-C with iOS 4 and
HI. My XCode 4.0.1 have a lot of documentation downloaded. I have iOS 4.2
I have an iOS app project with two targets. I currently have a single

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.