CGRect rect2 = [self positionRect:cow];
if (!CGRectIsNull(CGRectIntersection(rect1, rect2))) {
//handle collision
[sheep stopAction:jump_4ever];
}
參考地址:http://stackoverflow.com/questions/8379759/how-does-view-controller-co
參考地址:http://stackoverflow.com/questions/8379759/how-does-view-controller-co