Ios 7 rewrite