0

I am using the PhoneGap plugin DatePicker (https://github.com/phonegap/phonegap-plugins/tree/master/iOS/DatePicker). It works just fine in portrait mode, but I want to be able to use it in landscape mode as well.

If I first open the DatePicker controller while in portrait mode, it looks fine in landscape mode as well, but if I don't first open it in landscape, it is aligned to the right and looks broken. It's not possible to change year either. It seems the DatePicker is not updated every time it loads.

enter image description here

There is an 4 month old issue posted targeting this problem, but no one seems interested in taking care of this. (https://github.com/phonegap/phonegap-plugins/issues/250) There is also a link to an article with a possible solution to this problem, but I don't understand Obj-C, so I can't fix this myself.

Could someone who understands Objective-C look at the code and help me with this issue? Or are there any other options? I really need to use this plugin in landscape mode!

4

1 回答 1

0

你是对的,它只适用于 ios > 5,其次这个插件也不能在 iPad 上运行!

于 2012-05-11T12:13:26.750 回答