fixed some iOS6 warnings

fixed some iOS6 warnings