我使用从Tapku库(https://github.com/devinross/tapkulibrary)日历视图并将其嵌入到一个UIActionSheet - 一个替代现有的UIDatePicker。TouchesEnded检测到,但不是的touchesBegan
我遇到的麻烦是当选定的月份跨越6周时,底部行不会从touchesBegan
接收任何接触,但会在touchesEnded
和touchesMoved
中接受它们。
May 2013 - 5 weeks http://imageshack.us/a/img62/6280/iossimulatorscreenshot2.png June 2013 - 6 weeks http://imageshack.us/a/img41/6280/iossimulatorscreenshot2.png 所以在上面的截图开始6月30日该行不,除非它们起源的地方,行上方得到任何接触,然后进入它。
我觉得某处边界或框架设置不正确,我试图输出约我在touchesEnded
收到了这最后一排,让触控的一些信息:
$0 = 0x1f869670 <UITouch: 0x1f869670> phase: Ended tap count: 1
window: <_UIAlertOverlayWindow: 0x1e56b1e0; frame = (0 0; 320 568); layer = <UIWindowLayer: 0x1e56b300>>
view: <TKCalendarMonthTiles: 0x1f86b6d0;
frame = (0 1; 320 265); layer = <CALayer: 0x1f872fb0>>
location in window: {67, 551.5} previous location in window: {67, 550}
location in view: {67, 247.5} previous location in view: {67, 246}
目标视图的框架看起来是正确的,还有什么可能会丢失?