nicklockwood / FXForms

[DEPRECATED]
Other
2.93k stars 339 forks source link

Custom cell with image and custom imagePicker #434

Open morganbigot opened 8 years ago

morganbigot commented 8 years ago

Hello,

I would like to create a custom cell in my form with an UIImageView displaying the image chosen in a custom FilePickerImageViewController. I can't manage to set the image in the cell and save it as a value to reload the cell.

Here is the CustomButtonCell.h file :

#import "FXForms.h"
@interface CustomButtonCell : FXFormBaseCell
@property (nonatomic, strong) IBOutlet UIImageView * logoImageView;
@end

I launch my FilePickerImageViewController from the form

- (NSDictionary *)logoImageCellField
{
    return @{FXFormFieldCell: [CustomButtonCell class], FXFormFieldAction: @"submitAddLogoInForm:"};
}

Could you please tell me what to implement in the CustomButtonCell.m and in the form to be able to do so ?

Regards, Morgan.