Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Name the memory management rules and their related methods.

Answer Posted / maanya

The object you created is owned by you by allocating memory for it, or is owned by you by copying it.
Related Methods: alloc, allocWithZone, copy, copyWithZone, mutableCopy, mutableCopyWithZone.
If you are not the creator of an object but you want it to stay in memory, you can express an ownership interest.
Related Methods: retain.
If you created or expressed ownership interest on an object, and now you are its owner, then you are responsible to release it once you don't need it anymore.
Related Methods: release, autorelease.
If you are not the owner of an object (you did not created it or did not expressed ownership interest) then you must not release it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is Xcode?

909


Find the letter count in UItextfield? Including first character?

1506


What manual memory management ? How it work?

825


How core data works to save data in persistent storage?

756


What json framework is supported by ios (iphone os)?

829


When can you get ios 13?

809


Explain me what is "delegate"?

902


Explain how app delegate is declared by Xcode project templates?

938


Who calls the main function of you app during the app launch cycle in iOS operating system?

882


What is latest mac os version?

885


What does ns stand for ios?

859


How we can wait for some thread to finish before starting another?

797


Assume that an app is not in foreground but is still executing code. In which state will it be in?

837


what is the difference between Xcode, Cocoa and Objective C?

880


What does use core data mean in xcode?

897