. xib , (.. xib).
:
- (void)setupForOrientation:(UIInterfaceOrientation)orientation {
if (UIInterfaceOrientationIsPortrait(orientation)) {
CGRect bounds = CGRectMake(0, 0, 768, 1004);
bkgImageView.frame = bounds;
} else {
CGRect bounds = CGRectMake(0, 0, 1024, 748);
bkgImageView.frame = bounds;
}
[self drawBackgroundForOrientation:orientation];
}
shouldAutorotateToInterfaceOrientation: .