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

Mention what is the use of po command in xcode?

0 Answers  


List the devices compatible with ios 11? : IOS Architect

0 Answers  


What is weak in ios?

0 Answers  


Difference between sax parser and dom parser ?

0 Answers  


Which api would you use to write test scripts to exercise the application’s ui elements?

0 Answers  


You wish to define your custom view. Which class will be subclassed?

1 Answers  


Can you explain ios design patterns?

0 Answers  


what are the source items used by Xcode?

0 Answers  


What is synthesize in ios?

0 Answers  


When to use nsmutablearray and when to use nsarray?

0 Answers  


What happens if iapplication object does not handle an event?

0 Answers  


What is the difference between developer and enterprise developer accounts?

0 Answers  


Categories