Added fix for ios7 specific feature not guarded for ios6