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 |
Mention what is the use of po command in xcode?
List the devices compatible with ios 11? : IOS Architect
What is weak in ios?
Difference between sax parser and dom parser ?
Which api would you use to write test scripts to exercise the application’s ui elements?
You wish to define your custom view. Which class will be subclassed?
Can you explain ios design patterns?
what are the source items used by Xcode?
What is synthesize in ios?
When to use nsmutablearray and when to use nsarray?
What happens if iapplication object does not handle an event?
What is the difference between developer and enterprise developer accounts?