What is strong and weak in ios?



What is strong and weak in ios?..

Answer / Rashmi Banival

In iOS, 'strong' and 'weak' are memory management concepts used primarily with Objective-C. They help to manage the lifecycle of objects. Strong references increase the retain count of an object by one, preventing it from being deallocated until that strong reference is released. Weak references do not increase the retain count of an object and allow it to be deallocated when its last strong reference is released. An example of weak reference is using a delegate or a notification observer.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Difference between cocoa, cocoa touch and objective c?

1 Answers  


What are the viewcontroller lifecycle in ios?

1 Answers  


What are the limits of accessibility ?

1 Answers  


How to measure your application's performance on an iphone device?

1 Answers  


are you using charlesproxy ? Why/why not ?

1 Answers  


Explain commonly used third party libraries

1 Answers  


What are the ways to store data localy on iphone device?

1 Answers  


What is an ios framework?

1 Answers  


What is xib?

1 Answers  


What is category and class extension?

1 Answers  


What is cococa and cocoa touch?

1 Answers  


What are ios apps coded in?

1 Answers  


Categories