only display popover if we have a presented view controller (iOS dismisses VC before we get here)
Merge pull request #21 from jesseditson/master

iOS 8 compatibility