قالب وردپرس درنا توس
Home / IOS Development / Keeping the image centered when rotating device? (Maintain relative aspect ratios): iOS Programming

Keeping the image centered when rotating device? (Maintain relative aspect ratios): iOS Programming



Hey guys. Still working with my app, and I've made good progress, but I haven't completely wrapped my head around limitations yet. This is a simple problem I hope someone can easily answer.

I have a map, with a picture view added at the top:

View post on imgur.com

Quite simply, I want to keep this target dead centered in the map view no matter how the screen rotates and I want it to be wider (or smaller) when viewed in larger or smaller screen sizes.

EXTRA CREDIT: Change the label at the bottom of the screen to reflect current coordinates in the dead center of the map? Apple says this, but I can't make it work.

Thanks!


Source link