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 ios viewwillappear?

0 Answers  


Explain the difference between strong and retain.

0 Answers  


Which are the app’s state transitions when it is launched?

0 Answers  


What is message forwarding?

0 Answers  


Why do we override drawrect: method?

0 Answers  


What does use core data mean in xcode?

0 Answers  


Does ios supports multi-tasking functionality?

0 Answers  


What is the 'interface' and 'implementation'?

0 Answers  


Explain your process for tracing and fixing a memory leak

0 Answers  


What is variable in ios?

0 Answers  


Explain keywords alloc and new?

0 Answers  


What is the difference between viewdidload and viewdidappear?

0 Answers  


Categories