Loading a UIDatePicker in Landscape on a UINavigationController

前端 未结 6 664
慢半拍i
慢半拍i 2021-02-14 20:44

I have a custom UINavigationController that supports auto-rotate. I also have a UIDatePicker on one of my views that I throw onto the stack of the Navigation controller. The a

6条回答
  •  难免孤独
    2021-02-14 21:00

    I had the same problem with displaying the date picker (in timer mode) resized horizontally on the iPad. I couldn't get any of the known solutions to this bug to work, so I fixed this with an ugly hack which involved putting two datepickers in the view - one is resized in the background, and the other is in standard size (320px) in the foreground... I know, sounds sick, but it displays properly and that's what counts. It's Apple's fault anyway ;)

提交回复
热议问题