iPhone5の画面用にアプリを更新しています。setAutoresizingMaskは、(代替座標をハードコーディングする代わりに)オブジェクトの配置に使用するとよいように思えますが、機能させることができないようです。
私のアプリは回転しません。480または568のハイスクリーンの場合、この画像を下部に固定してロードしたいだけです。
これが私の簡単な試みです。提案をいただければ幸いです。ありがとう。
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.autoresizesSubviews = YES;
UIImage *getImg = [UIImage imageNamed:@"footer.jpg"];
UIImageView *footer = [[UIImageView alloc] initWithImage:getImg];
[footer setFrame:CGRectMake(0,0,302,50)];
[footer setAutoresizingMask:UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin];
[self.view addSubview:footer];
}
(このsetAutoresizingMaskは、画像を左下に設定する必要があると思います。)