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

What is the difference between viewdidload and viewdidappear?

0 Answers  


How do you stop apps running in the background on ios?

0 Answers  


Explain the usage of struct?

0 Answers  


What is difference between delegate and datasource in ios?

0 Answers  


What is UICollectionView ?

1 Answers  


Is realm db free?

0 Answers  


What are the different store migration options? When are they used? How do they work? What is mapping model?

0 Answers  


What is difference between weak and strong in ios?

0 Answers  


What are the lifecycle events of uiviewcontroller?

0 Answers  


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

0 Answers   TryTechnicals Pvt Ltd,


What is 1x 2x?

0 Answers  


Explain what is garbage collection?

0 Answers  


Categories