I currently have an image with a defined distance between multiple values. This distance is defined by pixel distance. I would like to know what the most proper future/proof way of going about converting these pixel positions into point positions on iOS would be. I have to overlay specific images in these spots based off of a performed calculation. Would anyone know the best way to do this?
I found the answer to this quest a long time ago. The easiest way to keep the full image scaling factor, while working with pixels, consists of two ways. One is to set the contents layer of a CALayer and deal with the raw pixel size without setting the content size for the CALayer so it keeps a 1:1 scaling factor. The second way is to convert the pixels to position coordinates using the scaling factor provided by iOS.