Added support for iOS 6
Fixed an issue
Merge pull request #11 from pepibumur/iOS6SupportFix

Added support for iOS 6