IPhone : iOS uiimageview orientation north

on Tuesday, February 24, 2015

I am trying to write a simple floor mapping app that will show the floors of my company. I have an image of floor but I would like it if I can point to the direction you are facing (top of phone) to always be oriented to the picture. So if you are facing south then the map should be rotated 180 degrees and show south on top and north on bottom of picture.


Initially, I was thinking of putting in a compass but why have 2 objects to figure out which direction you need to go if you can just orient the picture in the direction you are facing.


Any help on how to connect a UIImageView to the built in iOS compass would be appreciated.


0 comments:

Post a Comment