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...


Difference between retain and assign ?



Difference between retain and assign ?..

Answer / babu

Assign and retain was used in manual memory management (MRC) environment.

assign to set a property’s pointer to the address of the object without retaining it. use weak to have the property point to nil automatically if the object assigned to it is deallocated .

Use retain by default and will manage the object’s reference count automatically whether another object is assigned to the property or it’s set to nil; In ARC you will use strong instead of retain.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Procedure to push the app in appstore?

0 Answers  


When was ios invented?

0 Answers  


How to download images in ios?

0 Answers  


Differentiate between ‘assign’ and ‘retain’ keyword.

0 Answers  


What are the popular apps of iphone?

0 Answers  


Name and explain the iOS app states.

1 Answers  


What manual memory management?

0 Answers  


What is an NSOperationQueue and how/would you use it in iOS operating system?

0 Answers   UGC Corporation,


What is notification in iOS?

0 Answers   TryTechnicals Pvt Ltd,


What is nsmanagedobjectcontext? What are the different concurrency types? Explain them.

0 Answers  


What is uiviewcontroller in ios?

0 Answers  


Is it safe to update to ios 13?

0 Answers  


Categories