¿Cómo acceder a la implementación predeterminada en la categoría?
Frecuentes
Visto 50 equipos
1 Respuestas
0
The categories do not allow accessing default implementation. Possible solution can be achieved with método swizzling. Using that approach you can change selectors mapping in runtime and call default mapped implementation whenever you need.
Respondido 12 Feb 14, 07:02
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas ios iphone or haz tu propia pregunta.
why do you need default implementation on category? category generally used for adding some additional functionalities to the existing class..You better to use inheritance for default implementation purpose. - LML
Take for an example you have an UIAlertView which needs to be handled via bluetooth External keyboard, On -[UIAlertview show] method i need to write some additional handling code along with default functionality which I m doing with use of categories. - Rajesh