border on ipad

On my ipad i have a border of which i can’t get rid off.
See the image.

I have a ipad 2 so that’s a resolution of 1024x768.

The one who has set it up for me had some errors he commented. But i don’t know exactly what that was.
Anyone else has this problem?

  
    ofNoFill();  
    ofSetColor(255, 0, 0);  
    ofLine(0, 0, ofGetWidth(), ofGetHeight());  

I had the same issue, i managed to fix it by selecting the project in your left navigation, select General, and under deployment info, set device to iPad and deployment target to 6.1.