iOS7 support

Signed-off-by: Hin Lam <max21226@Hin-Lams-iMac.local>