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

What json framework supported by ios?

888


Why do we override drawrect: method?

857


How you can add frameworks in xcode project?

853


List the devices compatible with ios 11? : IOS Architect

778


What is the methods for unzip file in AFNetworking

1789


What are the application lifecycle in ios?

871


When was ios invented?

901


What is iphone reference library?

981


Explain how an autorelease pool works at the runtime level

2746


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

867


What language is ios written?

824


Explain me how to parse json?

849


What is the first responder?

820


what is the difference between Xcode, Cocoa and Objective C?

930


Explain the difference between stack and heap memory?

830