Solve the ios6 compatibility problems