I attempted to setup pfimage view storyboards in the following manner:
I dragged a UIImageView and then changed its class identity to PFImageView.
Then I dragged it to create an outlet in my .h file.
@property (strong, nonatomic) IBOutlet PFImageView *BuyPetImage;
Then on my on load for the class I access imageview with the same name as the property and set its file property.
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
PFObject *petdataobj = [selectedPet objectForKey:@"petObject"];
self.BuyPetNameLabel.text = [petdataobj objectForKey:@"Name"];
self.BuyPetTypeLabel.text = [petdataobj objectForKey:@"Type"];
self.BuyPetImage.file= [selectedPet objectForKey:@"imageFile"];
[self.BuyPetImage loadInBackground];
}
When the view loads I get the following error:
Unknown class PFImageView in Interface Builder file. -[UIImageView setFile:]: unrecognized selector sent to instance 0x1cdb52f0 * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setFile:]: unrecognized selector sent to instance 0x1cdb52f0'
Does anyone know why this is happening?