iPhone 6 Plus 対応のアプリを更新中です。プログラムで設定されたビューの 1 つで、5S 以下で実行すると、すべてのビューが本来あるべき中央に配置されます。ただし、6 Plusでは、わずかに左にスクートされています. このコードを調整して、すべてのバージョンで水平方向の中央に配置するにはどうすればよいですか?
[self.logInView.usernameField setFrame:CGRectMake(35.0f, 125.0f, 250.0f, 50.0f)];
[self.logInView.passwordField setFrame:CGRectMake(35.0f, 175.0f, 250.0f, 50.0f)];
[self.fieldsBackground setFrame:CGRectMake(35.0f, 125.0f, 250.0f, 100.0f)];
[self.logInView.logInButton setFrame:CGRectMake(35.0f, 235.0f, 250.0f, 40.0f)];