Im currently trying to find a UIPickerTable
within the UIPickerView.subviews ... so i loop through and do isKindOfClass:[UIPickerTable class]
.... which works.. but because the header of UIPickerTable isn't exposed i get a warning that "receiver 'UIPickerTable' is a forward class and corresponding @interface may not exist'
In order to even be able to compile I do @class UIPickerTable, and obviously it want's me to #include it.
I'm wondering if there's a way to get around seeing this warning.
TIA!
Maybe you have @class UIPickerTable
in your .h file and you did not have #import UIPickerTable.h
on your {RootViewController}.m file
I don't think that you can suppress that warning with a compiler option. You could make it go away by simply creating your own header file for the class, containing:
@interface FacesViewController : NSObject {
}
I suppose it goes without saying that having your application depend on the internal structure of a UIKit class is probably not the best strategy. Presumably you have a good reason for mucking about inside the UIPicker...
Importing the class vs using the @class directive will solve this warning. Remember, @class doesn't tell the compiler what "signature" methods/classes have, instead it just says that the class exists so don't error out. When going into detail, use import "..." instead so it includes the header / interface for the class.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With