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

How to do upload of large sized video file to server ? while uploading user presses “Homebutton” How long will execute?

1357


What is the biggest change with ios 7?

855


What is difference between delegate and datasource in ios?

849


What is the viper?

798


What are the lifecycle events of uiviewcontroller?

920


Is xcode a framework?

875


What do you know about the ios kernel?

838


Why core data is faster than sqlite?

879


What are the features of iphone 3gs?

791


What is appdelegate?

803


What happens when we invoke a method on a nil pointer?

767


Do you know which json framework is supported by ios?

805


What are ios functions?

764


What is weak in ios?

828


Different types of persistent stores? Which all types can we have on ios?

810