I have here a problem on datetime picker. I want to know how to set datetime picker value on tableview cell.
I have created two controller classes. One controller’s name is display class and the other controller’s name is datetime. I have this second controller page with name display and datetime.
If I start the application I am passing from display page to datetime page and here I have selected a value from datetime page on datetimepickerview and which value I am select this value should auto set on 1controller class on tableview cell.
Would someone give me a hint on how to do this?
You can set your datetimepickervalue in appDelegate file variable. So you can define one sting in your appDelegate file like below
In appDelegate.h file
@property (nonatomic, retain) NSString *strDate;
In appDelegate.m file
Now, In Your dateselection controller write below line in viewDidLoad Method.
Now, when you done with date selection and before you go back to First view do below.
Now, in your firstviewcontroller.h file take below label.
And in your cellForRowIndexPath Datasource method of your tableview. write below.
And in viewWillAppear Method write below.