views:

761

answers:

1

How do you record an iPad screencast at full scale?

I have an iMac with maximum resolution 1680x1050 and the simulator doesn't fit the screen in portrait orientation. It does fit in landscape orientation.

Reducing the scale to 50% is not an option because the end result is too small. If the scale could be reduced slightly it would be fine, but not 50%.

Is it possible to put the simulator in landscape orientation and still keep the app in portrait mode? Then I could simply rotate the resulting video to get a portrait screencast.

A: 

Turn off autorotation for the viewcontrollers you want to show (probably all):

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
     return interfaceOrientation == UIInterfaceOrientationPortrait;
}

You could wrap this up in #if ... #endif and make a special screencast build with a preprocessor SCREENCAST constant defined, so that you can easily turn this on and off.

Look out for the mouse pointer if you capture that as well, as the standard arrow will be rotated in your final movie.

Eiko
Doesn't work in all cases, but it was good enough for what I needed to do. Thanks!
hgpc