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
What is the extension of ios files?
What is background mode in ios?
What is array in ios?
Explain differences between foundation and corefoundation
From which ios version, arc is supported?
What is mapping model?
What is iphone architecture?
Compare and contrast the different ways of achieving concurrency in os x and ios.
Explain difference between sax parser and dom parser?
What is the difference between developer and enterprise developer accounts?
Flow of push notification?
What is push notification?
What are all the difference between categories and subclasses in iOS operating system?
What is grand central dispatch ios?
Who is the developer of ios?