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 appdelegate in xcode?

0 Answers  


What is difference between static library and framework?

0 Answers  


Where can you test Apple iPhone apps if you don’t have the device?

1 Answers  


What devices will support ios 7?

0 Answers  


Bundle & document directory, sandbox ?

1 Answers  


Do you know what are layer objects and what do they represent?

0 Answers  


Please explain what is difference strong and weak reference?

0 Answers  


what is dispatchQueue?

1 Answers  


Is appdelegate a singleton?

0 Answers  


Define view object in iOS operating system?

0 Answers   SwanSoft Technologies,


What is the full meaning of ios?

0 Answers  


What happens if iapplication object does not handle an event?

0 Answers  


Categories