Fix acceptAlert on iOS 7

Fix #1272