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 |
Explain your process for tracing and fixing a memory leak
What is an NSOperationQueue and how/would you use it in iOS operating system?
What is ios realm?
How do you fix app errors on iphone?
What does ios mean on my iphone?
What are the Different types of persistent stores?
Difference between retain and assign ?
Multitasking support is available from which version in iOS operating system?
0 Answers TryTechnicals Pvt Ltd,
What are all the difference between iOS3, iOS4 and iOS5?
What is gcd in ios swift?
Explain inheritance?
How much do ios developers get paid?