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

Fix ios6 deprecation warnings