iOS: Fix button event bugs