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 ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the features is ios 6?

768


What is callback in ios?

740


How do you fix app errors on iphone?

777


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

807


Do you know what is iphone reference library?

828


How much do ios developers get paid?

789


What json framework supported by ios?

807


Define encoding or serialization??

777


What are all the newly added frameworks iOS 4.3 to iOS 5.0?

731


What is nsfetchedresultscontroller? How do you turn on content monitoring?

844


How to deal with sqlite database?

803


What is background mode in ios?

785


Who is the developer of ios?

757


Explain the difference between copy and retain?

870


What is nsuserdefaults? What type of data can we store there?

774