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.



Name the memory management rules and their related methods...

Answer / 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

More Apple iOS Interview Questions

What is difference between synchronous and asynchronous in web request in iOS operating system?

0 Answers   Winsol Solutions,


How do you fix app errors on iphone?

0 Answers  


What is singleton design pattern in ios?

0 Answers  


How to send your device id to an iphone developer?

0 Answers  


How to edit iphone code

0 Answers  


What is the difference between copies & retain in iOS operating system?

0 Answers   TryTechnicals Pvt Ltd,


What is the ? In swift?

0 Answers  


What are various singleton instances provided by frameworks?

0 Answers  


What is mvc in ios?

0 Answers  


How can mobile application errors be prevented?

0 Answers  


. When an app is said to be in not running state? 

1 Answers  


How to export your private key from your keychain in iphone development?

0 Answers  


Categories