modify for ios8

modify for ios8