Backport to iOS 6
Merge pull request #2 from yakubbaev/master

Backport to iOS 6