边界碰撞检测 2016-09-25 本文已影响32人 Demoer 判断两个视图的位置是否相交: ``` if CGRectIntersectsRect(one.frame,two.frame){ 执行语句 } ```