The difference between strong, weak, read-only and copy is as follows:
<> Strong: This property maintains a reference to property throughout the lifetime of an object. When you declare strong, you intend to "own" the object you are referencing. Data you assign to this property will not be destroyed as long as you or any other object references it strongly.
<> Weak: It means that the object should be kept in memory as long as someone points to it strongly, and you don't need control over its lifetime.
<> Read-only: An object's property can be defined initially, but it cannot be altered or modified.
<> Copy: This attribute is an alternative to strong. In place of taking ownership of a current object, it creates a copy of whatever you assign to the property, then takes ownership of that copy.
Posted Date:- 2022-07-09 06:26:19
What is the Swift main advantage ?
How many are there APIs for battery-efficient location tracking ?
How many different annotations available in Objective-C ?
What is Facade Design Pattern?
Why is design pattern very important ?
What is Platform limitations of tvOS?
What’s the difference between the frame and the bounds?
What is the difference between a process and a thread?
What is the difference strong, weaks, read only and copy?
How can you implement storage and persistence in iOS?
What do you mean by dynamic dispatch?
State the difference between strong, weak, read only and copy.
Explain the function of the completion handler.
Explain TDD (Test-Driven Development).
State the difference between KVC and KVO in Swift.
What is the JSON framework supported by iOS?
What are generics in swift and write its usage?
What do you mean by lazy property in iOS?
What are the important features of Swift?
What do you mean by the SpriteKit and SceneKit framework in the context of game development?
State the difference between App ID and Bundle ID?
Write different ways to achieve concurrency in iOS?
What is the framework that is utilized to build an application's interface for iOS?
Which programming languages are used for iOS development?
What is ARC (Automatic Reference Counting)?
what is GCD (Grand Central Dispatch) in iOS.
What do you mean by deep linking in iOS?
State the difference between Android and iOS.
What is an iOS developer and what are his responsibilities?
What are different types of iOS Application States?
What is @synthesize in Objective-C?
Why don’t we use strong for enum property in Objective-C?
What is made up of NSError object?
Explain Compilation Conditions
What is the difference between Synchronous & Asynchronous task?