How to handle native ios popup using appium?

Hello,
I am working on an iOS application which displays a popup giving list of options to open a file with, if tapped on a file.
Screenshot below depicts the popup window which appeared after tapping on a file. I need to click on Print or similar menu.

I tried multiple options such as directly tapping on element from popup window.
Switching to active window using
driver.switchTo().activeElement().findElement(By.xpath("//UIACollectionCell[@name='Mail']")).click();
But no success. Can someone please help me?

P.S. I am using Appium 1.5.3 + Java + TestNG