I have made an app, with two ViewControllers each displaying different buttons. On the first display controller, there is a Record Sound button, Record label and a stop Recording button. The Record label is 'attached' to the Record sound button and the Stop recording button is 'attached' to the label, all of this using constraints. The issue I am having is that the buttons stay the same size on different devices, causing a cluttered interface or an empty one, depending on the device. I have tried different fixes across the internet but they are only for one individual button, not for groups of buttons.
I would like to learn of a solution that would change the size of the button or stack view depending on the screen size
I also want to learn how to do this with the buttons in multiple stack views in my second ViewController.
Examples:
iPhone 4s/SE: the stop recording button gets cut off in landscape mode. The buttons in both views are two large compared to the size of the screen.
iPads: The buttons are too small compared to the size of the screen.
Here are the fixes I have looked at and tried:
How can I dynamically set the size of the imageView according to the size of the image
Adjust button sizes based on screen size
Imgur is rejecting my request so I am not able to upload the image of my problem.