What is the difference between 'assign' and 'retain' keyword?
Answer / Pankaj Kumar Bhurji
'Assign' is a memory management strategy that creates a new object if the receiver is nil, or copies an existing object using a specified copying function. 'Retain', on the other hand, increases the retain count of an object by one, preventing it from being deallocated.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the 'interface' and 'implementation'?
What is uiviewcontroller in ios?
Explain how an autorelease pool works at the runtime level in iOS
1 Answers SwanSoft Technologies,
Why do we need to use @Synthesize in iOS operating system?
1 Answers TryTechnicals Pvt Ltd,
What is iphone?
What is arc ios?
What are the requirements for developing iphone apps?
Explain ~/documents, ~/library, ~/tmp. What directory is ~ on ios?
Explain how do I get a call when my ipad rings?
Does ios support multitasking?
How we can execute some code when app is in background?
What is ipa?