What is method swizzling in objective c and why would you use it?



What is method swizzling in objective c and why would you use it?..

Answer / Sudha Maurya

"Method Swizzling" is a technique used in Objective-C to dynamically swap out implementation of methods at runtime. It's useful when you want to modify the behavior of existing classes without modifying their source code or creating subclasses. This can be particularly helpful for debugging, testing, or implementing libraries.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is block in objective c?

1 Answers  


What is objective c programming used for?

1 Answers  


What does r mean in xcode?

1 Answers  


What is single inheritance in objective-c?

1 Answers  


Does copy increase retain count?

1 Answers  


Explain types of protocol?

1 Answers  


Is objective c difficult?

1 Answers  


What is objective c runtime?

1 Answers  


What is the difference between a script file and a function matlab?

1 Answers  


What is an objective statement?

1 Answers  


What is struct and enum?

1 Answers  


What is synthesize objective c?

1 Answers  


Categories