I am working on a dynamic application in which I get the CGRect values individually (x, y, width, height) from the web service for each of the user interface objects inside the view.
On the server, they will set frames based on the following size (1080 x 1920), so let's say if I get a CGRect with the following values: (200, 20, 100, 100), then this should fit into the device based on the size of the device and the specified server size.
So, with the iPhone 5 - the new frame will be the same 200, 20, 100, 100.
So, in the case of the iPhone 6 (375 x 667) - will there be a new frame?
So, in the case of the iPhone 6+ (414 x 736) - will there be a new frame?
The main thing is that no matter what frame will be accepted in the application for a specific user interface object, it should look the same as in the admin panel specifically for fields.
For a note
I configure the interface with AutoLayout only in the storyboard.
Any suggestion?
This is an example:
Example 1:
| _________________ | | | | | | | | | | | | | | | | | | |_________________| | | |
Example 2:
| _________ | | | | | | | | | | | | | | | | | | |_________| | | |
In the examples above, I'm trying to explain that any frame will come from the server if it looks like a server similar to a device, but it should be based on a CGRect device.
source share