¿Cómo evitar el error "_OBJC_IVAR _ $ _ UIPickerView._backgroundView símbolo no encontrado"?

I'm trying to access _backgroundView variable declared as @private in the header UIPickerView.h, using categories. As result linker retun an error "_OBJC_IVAR_$_UIPickerView._backgroundView ..... symbol(s) not found". Attempts to use linker options such as -all_load, -ObjC have no any result.

There are any way to resolve this problem?

preguntado el 27 de agosto de 11 a las 20:08

No, there is not, because the ivar is private and thus does not exist to you. It exists ONLY to the UIKit engineers and you should NOT try to much around with. -

1 Respuestas

  1. Don't do it. It's private for a reason.
  2. If you must do it, you could try using [pickerView valueForKey:@"_backgroundView"]. Don't submit this to the App Store.

Respondido 28 ago 11, 00:08

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.