What is the difference between retain & assign in iOS operating system?
Answer / Priyanka Pethe
In Objective-C, the 'retain' message increases the retain count of an object by 1, meaning that you are telling the object to hold on to its memory a little longer. The 'assign' message simply sets a new value for an object without increasing or decreasing its retain count. It is used with primitive types like NSNumber and NSString.
| Is This Answer Correct ? | 0 Yes | 0 No |
Functionality of accelerometer of an iphone
how you can delete a smart group created in Xcode?
What is nslayoutanchor?
Explain xctest test case code.
What are some common execution states in ios?
Difference between iOS 3 , iOS4, iOS 5, iOS 6, iOS 7 and iOS 8 (What are the new features)
What is iphone sdk?
How can a user respond or react to the state transitions on the app?
What are the Common reasons for app rejection from app store review process?
What language is ios written?
What is plist file and explain about it is usage in iOS operating system?
What are the different types of ios application states?