Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIWebView DatePicker Input Detection

I have a UIWebView and I'd like to use the internal datepicker on iOS that is used when I have the <input type=date> tag.

I have some UIViews in iOS that I want to modify based on if that input changes.

How do I detect this change? I'm hoping there is a delegate I can use but based on my research, that doesn't seem possible.

like image 460
Raymond Array Wang Avatar asked Apr 29 '26 17:04

Raymond Array Wang


2 Answers

If I understand you correctly, you want to catch datepicker value changed event? If it is, you can simply create IBAction method and connect it to datepicker valueChanged event in interface builder.

like image 73
Dmitry Vorobyov Avatar answered May 01 '26 05:05

Dmitry Vorobyov


This may can help you

Invoke native date picker from web-app on iOS/Android

There are some plugins that simulates the uidatepicker style in javascript.

like image 27
Mikel Sanchez Avatar answered May 01 '26 06:05

Mikel Sanchez