2011-07-03 26 views

回答

4

兩個子視圖您可以使用CGRect*功能。類似CGRectIntersectsRect()將接受兩個rects(對於ball.framepaddleview.frame)並返回簡單的BOOL,表示它們是否重疊。