When the ball hits the paddle from the corners or left and right side, the ball goes into the paddle from one side and goes out of it from the other side.. How can I fix this problem? Thanks..
My code:
if (CGRectIntersectsRect(ball.frame,paddle.frame))
{
[self bounceBall];
}
- (void) bounceBall
{
direction.x *= 1;
direction.y *=-1;
}

This will be helpful for you to got solution for the above problem.