01.
if
([[
UIDevice
currentDevice] userInterfaceIdiom] ==
UIUserInterfaceIdiomPhone
) {
02.
03.
scrollView.contentSize=CGSizeMake(320,450);
04.
}
05.
else
06.
{
07.
if
((
self
.interfaceOrientation ==
UIDeviceOrientationLandscapeLeft
) || (
self
.interfaceOrientation ==
UIDeviceOrientationLandscapeRight
)){
08.
scrollView.contentSize=CGSizeMake(768,1000);
09.
10.
}
else
if
((
self
.interfaceOrientation ==
UIDeviceOrientationPortrait
) || (
self
.interfaceOrientation ==
UIDeviceOrientationPortraitUpsideDown
)){
11.
12.
scrollView.contentSize=CGSizeMake(768,800);
13.
14.
}
15.
}