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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:31:20+00:00 2026-06-09T07:31:20+00:00

I have got some questions about autorelease feature. Please advice.. Q1) Does it have

  • 0

I have got some questions about autorelease feature.

Please advice..

Q1) Does it have a any sense or value about calling retain or release to autoreleased object?

ex1) 
 UIView *viewTest = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 300, 400)] autorelease];
[self.view addSubview:viewTest];

In this condition, viewtest object will be released in future?
Or need to add a line ‘[viewTest release];’?

ex2)

UIView *viewTest = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 300, 400)] autorelease];
[viewTest release];

In this case, viewTest will be autorelease?

Q2) Where does autoreleased object be destroyed?

  • 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-09T07:31:24+00:00Added an answer on June 9, 2026 at 7:31 am

    Q1) Does it have a any sense or value about calling retain or release to autoreleased object?

    Not really, the object will get released when the autoreleasepool is drained anyway. Take a look at this

    Q2) Where does autoreleased object be destroyed?

    The autoreleased object is destroyed when the NSAutoreleasePool is drained, or at the end of the @autoreleasepool construct, which basically does the same thing.

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

Sidebar

Related Questions

I have got some questions about Dotnetnuke: Can i create/run multiple websites having only
I've got some basic questions about C++. Consider the following code in which I
I have some questions about the Apple iPhone Contact App. I want to use
I wasn't sure about my questions name. I have an HTML page I got
I'm just getting into Facebook application development. I've got some questions about how the
Good morning. As the title indicates, I've got some questions about using python for
I have some questions about MPMusicPlayerController 's playbackState properties. In the document, MPMusicPlaybackStateInterrupted and
I got several questions about calling overloaded(or maybe I should call them hidden) methods
In some measure of progress since my last question I have got the following
I have got some lists, and I want to filter elements from them. Here's

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.