Update some calls that are deprecated as of iOS6.