automatic sizing by screen calculations
<p>I have a picture in the center of my cell, I added a leading and a trailing to center this, it works in a lot of devices but when I try to display this on the iPhone 4 the screen is too small so the length of the leading and trailing are too longs so the picture is compressed and we could not see the image.</p>

<p><a href="https://i.stack.imgur.com/dY4JJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dY4JJ.png" alt="enter image description here"></a></p>

<p>So I want to do calculations like leading = screen_width/3 and trailing = screen_width/3</p>

<p>It is possible and it is a good solution ? How to do this or here is an better way ?</p>