The senator later clarified that he was only playing for fake money.
McCain also tweeted about the photo shortly after it went up:
Scandal! Caught playing iPhone game at 3+ hour Senate hearing - worst of all I lost!
— John McCain (@SenJohnMcCain) September 3, 2013
Here's the photo, for those who haven't seen it: