本文介绍了UIDatePicker UIDatePickerModeCountDownTimer iPad Graphic Bug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为我的UIDatePicker创建了一个新的UIView。我用默认设置测试它并且一切正常(UIDatePickerModeDateAndTime)但是一旦我运行 [[picker picker]]; 地狱就会松动..

I've just made a new UIView for my UIDatePicker. I was testing it with the default settings and all was ok (UIDatePickerModeDateAndTime) but as soon as I run [[picker picker]]; hell breaks loose..

UIDatePickerModeDateAndTime模式:

UIDatePickerModeDateAndTime Mode:

UIDatePickerModeCountDownTimer模式:

UIDatePickerModeCountDownTimer Mode:

我的调试器控制台也提供了9个关于无法找到以下文件名的映射图像的错误:

My debugger console also give 9 errors about not being able to find the mapped image for the following filenames:


  • UITimerPickerFrameRight-180-Bar.png

  • UITimerPickerFrameMiddle-180.png

  • UITimerPickerFrameRight-180-Bar.png

  • UITimerPickerBackground-180.png

  • UITimerPickerFrameLeft-180-Bar.png

  • UITimerPickerFrameMiddle-180.png

  • UITimerPickerFrameRight-180-Bar.png

  • UITimerPickerWheelBackground-180.png

  • UITimerPic kerWheelBackground-180.png

  • UITimerPickerFrameRight-180-Bar.png
  • UITimerPickerFrameMiddle-180.png
  • UITimerPickerFrameRight-180-Bar.png
  • UITimerPickerBackground-180.png
  • UITimerPickerFrameLeft-180-Bar.png
  • UITimerPickerFrameMiddle-180.png
  • UITimerPickerFrameRight-180-Bar.png
  • UITimerPickerWheelBackground-180.png
  • UITimerPickerWheelBackground-180.png

确切的错误信息是无法找到映射图像[IMAGE NAME]

我正在测试的iPad是运行iOS5的iPad 2,这个错误也可以在iOS 4和5上的iPad模拟器上复制。

the iPad i'm testing on is an iPad 2 running iOS5, this error can also be replicated on the iPad Simulator on both iOS 4 and 5.

有没有人知道如果应用截止日期即将到来,我需要这种特定模式:/

Does anybody know of a walk around to this as the apps deadline is soon and I need this specific mode :/

我也没有尝试在iPhone上复制这个问题,因为我知道时钟应用程序没有这个问题。

I also haven't tried to replicate the issue on the iPhone as i know the clocks app doesn't have this issue.

推荐答案

确保您创建 UIDatePicker ,其高度为 216

Make sure you are creating the UIDatePicker with a height of 216.

UIDatePickerModeCountDownTimer 模式有任何低于该高度的问题。

The UIDatePickerModeCountDownTimer mode has a problem with anything less than that height.

这篇关于UIDatePicker UIDatePickerModeCountDownTimer iPad Graphic Bug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 21:34