tenfef / cordova-plugin-datepicker

Phonegap Date Picker iOS 8 support
MIT License
1 stars 1 forks source link

iOS 8 positioning #1

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi I just installed your plugin hoping it would correct an iOS 8 issue I am having with the Sectore datepicker plugin, but I'm having the same issue with this one.

Everything works fine with iOS 7.x but with iOS 8, the datepicker is not displaying correctly. It looks almost like the height calculation is not correct. All I can see is a small white rounded rectangle at the bottom of the screen. I have attached a screenshot to demonstrate. This happens only with iPhone. The iPad still behaves correctly. Any help you can provide is appreciated, thanks.

ios simulator screen shot sep 22 2014 9 50 13 am

**EDIT: After a little research, it seems that this is happening because Apple changed (limited) the functionality of UIActionSheet, which is how the datepicker is displayed on iPhone. Apparently it needs to be converted to use UIAlertController instead. I gave it a try but I'm not versed well enough in Obj-C to get it to work.

tenfef commented 10 years ago

Hey man,

This is the very bug that my fork fixes... haha It looks like you still have the old version. If you install the plugin via phonegap cli you will probably install the old version, to install my version you may have to manually copy the ios files across. (There are only 2 files).

ghost commented 10 years ago

Ahhh I see. I did remove the old plugin before I added yours but somehow the DatePicker.h and DatePicker.m files were still there. I replaced them with yours and everything's working fine now. Thanks again!