Removed legacy code for supporting ios 5 and below.