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 |
What are most ios apps written in?
When would you say that an app is not in a running state?
What is Task?
Who is the founder of ios?
What is dynamic dispatch ios?
Explain the different types of ios application states.
what is the difference between nonatomic & atomic ? which is thread safe and why
Which is the state an app reaches briefly on its way to being suspended?
what is the difference between Xcode, Cocoa and Objective C?
Can you please explain the difference between frame and bounds?
Difference between retain and assign ?
. Apart from incorporating views and controls, what else an app can incorporate?