OK, after doing some more research and toying around, I finally got it working. Below is the code. This is with the phone in landscape orientation.
for (UITouch *touch in [event allTouches]) {
CGPoint location = [touch locationInView:touch.view];
if (location.x < 240) {
CGPoint yLocation = CGPointMake(p1_paddle.center.x,location.y);
p1_paddle.center = yLocation;
}
if (location.x > 240) {
CGPoint yLocation2 = CGPointMake(p2_paddle.center.x,location.y);
p2_paddle.center = yLocation2;
}
}
ALSO REMEMBER in your viewDidLoad method,
self.view.multipleTouchEnabled = YES;