iOS7 initial support

attempt to support iOS7.