Fix ios6 deprecation warnings
Merge pull request #20 from cygnl7/dev/ios6

Fix ios6 deprecation warnings