I have a custom UIView class. Inside it I have declared an IBOutlet property for UIImageView.
#import
in your .h file you need to replace your code:
#import
@interface SettingItem : UIView{
}
@property (strong, nonatomic) IBOutlet UIImageView *myImage;
@end
With this code
#import
@interface SettingItem : UIView{
IBOutlet UIImageView*myImage;
}
@end
You are not actually telling Xcode what myImage is, you are just making it a strong, nonatomic property