mapbox/mapbox-ios-sdk — pull request #509 by maciekish (2014-09-23 15:13:51+00:00)
Title: Fixed offset calculation

Your offset calculation for callouts is flawed. You should only adjust for the topLayoutGuide if necessary and adjustment for bottomLayoutGuide was missing entirely.

Without this fix on iOS 7+, when position is adjusted it will always be adjusted downwards and never adjusted upwards.