support ios 6.0 fixed some warnning