Vevia works out the direction to the Kaaba from your chosen city and shows it on a compass that uses your iPhone’s magnetometer, with the distance to Makkah.
Getting it accurate
Hold the phone flat, away from magnets, laptops and metal surfaces.
If accuracy is shown as low, move the phone in a figure-8 a few times to calibrate.
Indoors, steel in walls and floors can bend the reading by several degrees.