adapt iOS7