IOS7兼容代码整理

Signed-off-by: lili <lili@kdanmobile.com>