fix error in iOS SDK 6+

Signed-off-by: 许忠洲 <xuzhongzhou@xuzhongzhoudeMacBook-Pro.local>