How to have different layouts for iPhone and iPad

first, I am using a translator. Please understand.

want to add buttons using Auto Layout on a large image.

Auto layout applied but button position incorrectly

//let screenHeight = UIScreen.main.bounds.size.height

Currently, the height was obtained through the above method and automatic layout was applied to each.

However, too many situations had to be considered when trying to apply the iPad.

Isn't there a better way?

How to have different layouts for iPhone and iPad
 
 
Q