From c78d2da48724f1a698afdbc6145d2ae4f1bab9e6 Mon Sep 17 00:00:00 2001 From: Gianluca Tranchedone Date: Tue, 31 Mar 2015 10:33:47 +0100 Subject: [PATCH] Minor improvement that allows for use of custom date pickers --- FXForms/FXForms.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/FXForms/FXForms.m b/FXForms/FXForms.m index ff2b7ea..5d9e754 100644 --- a/FXForms/FXForms.m +++ b/FXForms/FXForms.m @@ -3335,7 +3335,12 @@ @implementation FXFormDatePickerCell - (void)setUp { self.datePicker = [[UIDatePicker alloc] init]; - [self.datePicker addTarget:self action:@selector(valueChanged) forControlEvents:UIControlEventValueChanged]; +} + +- (void)setDatePicker:(UIDatePicker *)datePicker +{ + _datePicker = datePicker; + [datePicker addTarget:self action:@selector(valueChanged) forControlEvents:UIControlEventValueChanged]; } - (void)update