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
- Don't do it. It's private for a reason.
- If you must do it, you could try using
[pickerView valueForKey:@"_backgroundView"]. Don't submit this to the App Store.