dev_1.0

you can separate this if else condition to 2 ifs
if (CGRectIntersectsRect([[theView.layer presentationLayer] frame], self.player.frame)) {

}

if (!CGRectIntersectsRect([[theView.layer presentationLayer] frame], self.view.frame)){

}

it more clean and readable